1 error: literal cannot be represented as the underlying type without loss of precision
2 --> $DIR/lossy_float_literal.rs:6:18
4 LL | let _: f32 = 16_777_217.0;
5 | ^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_216.0`
7 = note: `-D clippy::lossy-float-literal` implied by `-D warnings`
9 error: literal cannot be represented as the underlying type without loss of precision
10 --> $DIR/lossy_float_literal.rs:7:18
12 LL | let _: f32 = 16_777_219.0;
13 | ^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220.0`
15 error: literal cannot be represented as the underlying type without loss of precision
16 --> $DIR/lossy_float_literal.rs:8:18
18 LL | let _: f32 = 16_777_219.;
19 | ^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220.0`
21 error: literal cannot be represented as the underlying type without loss of precision
22 --> $DIR/lossy_float_literal.rs:9:18
24 LL | let _: f32 = 16_777_219.000;
25 | ^^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220.0`
27 error: literal cannot be represented as the underlying type without loss of precision
28 --> $DIR/lossy_float_literal.rs:10:13
30 LL | let _ = 16_777_219f32;
31 | ^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220_f32`
33 error: literal cannot be represented as the underlying type without loss of precision
34 --> $DIR/lossy_float_literal.rs:11:19
36 LL | let _: f32 = -16_777_219.0;
37 | ^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220.0`
39 error: literal cannot be represented as the underlying type without loss of precision
40 --> $DIR/lossy_float_literal.rs:12:18
42 LL | let _: f64 = 9_007_199_254_740_993.0;
43 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `9_007_199_254_740_992.0`
45 error: literal cannot be represented as the underlying type without loss of precision
46 --> $DIR/lossy_float_literal.rs:13:18
48 LL | let _: f64 = 9_007_199_254_740_993.;
49 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `9_007_199_254_740_992.0`
51 error: literal cannot be represented as the underlying type without loss of precision
52 --> $DIR/lossy_float_literal.rs:14:18
54 LL | let _: f64 = 9_007_199_254_740_993.00;
55 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `9_007_199_254_740_992.0`
57 error: literal cannot be represented as the underlying type without loss of precision
58 --> $DIR/lossy_float_literal.rs:15:13
60 LL | let _ = 9_007_199_254_740_993f64;
61 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `9_007_199_254_740_992_f64`
63 error: literal cannot be represented as the underlying type without loss of precision
64 --> $DIR/lossy_float_literal.rs:16:19
66 LL | let _: f64 = -9_007_199_254_740_993.0;
67 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `9_007_199_254_740_992.0`
69 error: aborting due to 11 previous errors