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 integral variable
8 | help: use a float literal: `16.0`
10 = note: expected type `f32`
11 found type `{integer}`
13 error[E0308]: mismatched types
14 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:5:38
16 LL | let a_million_and_seventy: f64 = 1_000_070;
19 | expected f64, found integral variable
20 | help: use a float literal: `1_000_070.0`
22 = note: expected type `f64`
23 found type `{integer}`
25 error[E0308]: mismatched types
26 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:8:30
28 LL | let negative_nine: f32 = -9;
31 | expected f32, found integral variable
32 | help: use a float literal: `-9.0`
34 = note: expected type `f32`
35 found type `{integer}`
37 error[E0308]: mismatched types
38 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:15:30
40 LL | let sixteen_again: f64 = 0x10;
41 | ^^^^ expected f64, found integral variable
43 = note: expected type `f64`
44 found type `{integer}`
46 error[E0308]: mismatched types
47 --> $DIR/issue-53280-expected-float-found-integer-literal.rs:17:30
49 LL | let and_once_more: f32 = 0o20;
50 | ^^^^ expected f32, found integral variable
52 = note: expected type `f32`
53 found type `{integer}`
55 error: aborting due to 5 previous errors
57 For more information about this error, try `rustc --explain E0308`.