1error[E0308]: mismatched types 2 --> $DIR/float-literal-inference-restrictions.rs:2:18 3 | 4LL | let x: f32 = 1; 5 | --- ^ 6 | | | 7 | | expected `f32`, found integer 8 | | help: use a float literal: `1.0` 9 | expected due to this 10 11error[E0308]: mismatched types 12 --> $DIR/float-literal-inference-restrictions.rs:3:18 13 | 14LL | let y: f32 = 1f64; 15 | --- ^^^^ expected `f32`, found `f64` 16 | | 17 | expected due to this 18 | 19help: change the type of the numeric literal from `f64` to `f32` 20 | 21LL | let y: f32 = 1f32; 22 | ~~~ 23 24error: aborting due to 2 previous errors 25 26For more information about this error, try `rustc --explain E0308`. 27