blob: 8b0fb15caa8f97bdccd69102a241485cf36d6585 [file]
warning: falling back to `f32` as the trait bound `f32: From<f64>` is not satisfied
--> $DIR/untyped-primitives.rs:7:23
|
LL | let x = f32::from(3.14);
| ^^^^ help: explicitly specify the type as `f32`: `3.14_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: 1 warning emitted