]> git.lizzy.rs Git - rust.git/blob - tests/ui/lossy_float_literal.stderr
Rollup merge of #92849 - flip1995:clippyup, r=Manishearth
[rust.git] / tests / ui / lossy_float_literal.stderr
1 error: literal cannot be represented as the underlying type without loss of precision
2   --> $DIR/lossy_float_literal.rs:6:18
3    |
4 LL |     let _: f32 = 16_777_217.0;
5    |                  ^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_216.0`
6    |
7    = note: `-D clippy::lossy-float-literal` implied by `-D warnings`
8
9 error: literal cannot be represented as the underlying type without loss of precision
10   --> $DIR/lossy_float_literal.rs:7:18
11    |
12 LL |     let _: f32 = 16_777_219.0;
13    |                  ^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220.0`
14
15 error: literal cannot be represented as the underlying type without loss of precision
16   --> $DIR/lossy_float_literal.rs:8:18
17    |
18 LL |     let _: f32 = 16_777_219.;
19    |                  ^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220.0`
20
21 error: literal cannot be represented as the underlying type without loss of precision
22   --> $DIR/lossy_float_literal.rs:9:18
23    |
24 LL |     let _: f32 = 16_777_219.000;
25    |                  ^^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220.0`
26
27 error: literal cannot be represented as the underlying type without loss of precision
28   --> $DIR/lossy_float_literal.rs:10:13
29    |
30 LL |     let _ = 16_777_219f32;
31    |             ^^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220_f32`
32
33 error: literal cannot be represented as the underlying type without loss of precision
34   --> $DIR/lossy_float_literal.rs:11:19
35    |
36 LL |     let _: f32 = -16_777_219.0;
37    |                   ^^^^^^^^^^^^ help: consider changing the type or replacing it with: `16_777_220.0`
38
39 error: literal cannot be represented as the underlying type without loss of precision
40   --> $DIR/lossy_float_literal.rs:12:18
41    |
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`
44
45 error: literal cannot be represented as the underlying type without loss of precision
46   --> $DIR/lossy_float_literal.rs:13:18
47    |
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`
50
51 error: literal cannot be represented as the underlying type without loss of precision
52   --> $DIR/lossy_float_literal.rs:14:18
53    |
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`
56
57 error: literal cannot be represented as the underlying type without loss of precision
58   --> $DIR/lossy_float_literal.rs:15:13
59    |
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`
62
63 error: literal cannot be represented as the underlying type without loss of precision
64   --> $DIR/lossy_float_literal.rs:16:19
65    |
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`
68
69 error: aborting due to 11 previous errors
70