1 error[E0308]: mismatched types
2 --> $DIR/bad-hex-float-lit.rs:2:19
4 LL | let _f: f32 = 0xAAf32;
5 | --- ^^^^^^^ expected `f32`, found integer
9 help: rewrite this as a decimal floating point literal, or use `as` to turn a hex literal into a float
11 LL | let _f: f32 = 0xAA as f32;
13 LL | let _f: f32 = 170_f32;
16 error[E0308]: mismatched types
17 --> $DIR/bad-hex-float-lit.rs:6:19
19 LL | let _f: f32 = 0xAB_f32;
20 | --- ^^^^^^^^ expected `f32`, found integer
22 | expected due to this
24 help: rewrite this as a decimal floating point literal, or use `as` to turn a hex literal into a float
26 LL | let _f: f32 = 0xAB as f32;
28 LL | let _f: f32 = 171_f32;
31 error[E0308]: mismatched types
32 --> $DIR/bad-hex-float-lit.rs:10:19
34 LL | let _f: f64 = 0xFF_f64;
35 | --- ^^^^^^^^ expected `f64`, found integer
37 | expected due to this
39 help: rewrite this as a decimal floating point literal, or use `as` to turn a hex literal into a float
41 LL | let _f: f64 = 0xFF as f64;
43 LL | let _f: f64 = 255_f64;
46 error: aborting due to 3 previous errors
48 For more information about this error, try `rustc --explain E0308`.