1 error[E0308]: mismatched types
2 --> $DIR/float-literal-inference-restrictions.rs:2:18
4 LL | let x: f32 = 1; //~ ERROR mismatched types
7 | expected f32, found integer
8 | help: use a float literal: `1.0`
10 = note: expected type `f32`
11 found type `{integer}`
13 error[E0308]: mismatched types
14 --> $DIR/float-literal-inference-restrictions.rs:3:18
16 LL | let y: f32 = 1f64; //~ ERROR mismatched types
17 | ^^^^ expected f32, found f64
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.