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