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