1 error[E0308]: mismatched types
2 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:2:24
4 LL | let sixteen: f32 = 16;
7 | | expected `f32`, found integer
8 | | help: use a float literal: `16.0`
11 error[E0308]: mismatched types
12 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:5:38
14 LL | let a_million_and_seventy: f64 = 1_000_070;
17 | | expected `f64`, found integer
18 | | help: use a float literal: `1_000_070.0`
19 | expected due to this
21 error[E0308]: mismatched types
22 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:8:30
24 LL | let negative_nine: f32 = -9;
27 | | expected `f32`, found integer
28 | | help: use a float literal: `-9.0`
29 | expected due to this
31 error[E0308]: mismatched types
32 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:15:30
34 LL | let sixteen_again: f64 = 0x10;
35 | --- ^^^^ expected `f64`, found integer
37 | expected due to this
39 error[E0308]: mismatched types
40 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:17:30
42 LL | let and_once_more: f32 = 0o20;
43 | --- ^^^^ expected `f32`, found integer
45 | expected due to this
47 error: aborting due to 5 previous errors
49 For more information about this error, try `rustc --explain E0308`.