fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/bad-hex-float-lit.rs:2:19 3 | 4LL | let _f: f32 = 0xAAf32; 5 | --- ^^^^^^^ expected `f32`, found integer 6 | | 7 | expected due to this 8 | 9help: rewrite this as a decimal floating point literal, or use `as` to turn a hex literal into a float 10 | 11LL | let _f: f32 = 0xAA as f32; 12 | ~~~~~~~~~~~ 13LL | let _f: f32 = 170_f32; 14 | ~~~~~~~ 15 16error[E0308]: mismatched types 17 --> $DIR/bad-hex-float-lit.rs:6:19 18 | 19LL | let _f: f32 = 0xAB_f32; 20 | --- ^^^^^^^^ expected `f32`, found integer 21 | | 22 | expected due to this 23 | 24help: rewrite this as a decimal floating point literal, or use `as` to turn a hex literal into a float 25 | 26LL | let _f: f32 = 0xAB as f32; 27 | ~~~~~~~~~~~ 28LL | let _f: f32 = 171_f32; 29 | ~~~~~~~ 30 31error[E0308]: mismatched types 32 --> $DIR/bad-hex-float-lit.rs:10:19 33 | 34LL | let _f: f64 = 0xFF_f64; 35 | --- ^^^^^^^^ expected `f64`, found integer 36 | | 37 | expected due to this 38 | 39help: rewrite this as a decimal floating point literal, or use `as` to turn a hex literal into a float 40 | 41LL | let _f: f64 = 0xFF as f64; 42 | ~~~~~~~~~~~ 43LL | let _f: f64 = 255_f64; 44 | ~~~~~~~ 45 46error: aborting due to 3 previous errors 47 48For more information about this error, try `rustc --explain E0308`.