]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-type-overflow2.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / lint-type-overflow2.stderr
1 error: literal out of range for `i8`
2   --> $DIR/lint-type-overflow2.rs:6:20
3    |
4 LL |     let x2: i8 = --128;
5    |                    ^^^
6    |
7    = note: the literal `128` does not fit into the type `i8` whose range is `-128..=127`
8    = help: consider using the type `u8` instead
9 note: the lint level is defined here
10   --> $DIR/lint-type-overflow2.rs:3:9
11    |
12 LL | #![deny(overflowing_literals)]
13    |         ^^^^^^^^^^^^^^^^^^^^
14
15 error: literal out of range for `f32`
16   --> $DIR/lint-type-overflow2.rs:8:14
17    |
18 LL |     let x = -3.40282357e+38_f32;
19    |              ^^^^^^^^^^^^^^^^^^
20    |
21    = note: the literal `3.40282357e+38_f32` does not fit into the type `f32` and will be converted to `f32::INFINITY`
22
23 error: literal out of range for `f32`
24   --> $DIR/lint-type-overflow2.rs:9:14
25    |
26 LL |     let x =  3.40282357e+38_f32;
27    |              ^^^^^^^^^^^^^^^^^^
28    |
29    = note: the literal `3.40282357e+38_f32` does not fit into the type `f32` and will be converted to `f32::INFINITY`
30
31 error: literal out of range for `f64`
32   --> $DIR/lint-type-overflow2.rs:10:14
33    |
34 LL |     let x = -1.7976931348623159e+308_f64;
35    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
36    |
37    = note: the literal `1.7976931348623159e+308_f64` does not fit into the type `f64` and will be converted to `f64::INFINITY`
38
39 error: literal out of range for `f64`
40   --> $DIR/lint-type-overflow2.rs:11:14
41    |
42 LL |     let x =  1.7976931348623159e+308_f64;
43    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
44    |
45    = note: the literal `1.7976931348623159e+308_f64` does not fit into the type `f64` and will be converted to `f64::INFINITY`
46
47 error: aborting due to 5 previous errors
48