| warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied |
| --> $DIR/f32-into-f32.rs:9:9 |
| | |
| LL | foo(1.0); |
| | ^^^ help: explicitly specify the type as `f32`: `1.0_f32` |
| | |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024> |
| = note: `#[warn(float_literal_f32_fallback)]` (part of `#[warn(future_incompatible)]`) on by default |
| |
| warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied |
| --> $DIR/f32-into-f32.rs:12:11 |
| | |
| LL | foo(-(2.5)); |
| | ^^^ help: explicitly specify the type as `f32`: `2.5_f32` |
| | |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024> |
| |
| warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied |
| --> $DIR/f32-into-f32.rs:15:9 |
| | |
| LL | foo(1e5); |
| | ^^^ help: explicitly specify the type as `f32`: `1e5_f32` |
| | |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024> |
| |
| warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied |
| --> $DIR/f32-into-f32.rs:19:14 |
| | |
| LL | let x = -4.0; |
| | ^^^ help: explicitly specify the type as `f32`: `4.0_f32` |
| | |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| = note: for more information, see issue #154024 <https://github.com/rust-lang/rust/issues/154024> |
| |
| warning: 4 warnings emitted |
| |