]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-type-overflow2.stderr
Update const_forget.rs
[rust.git] / src / test / ui / lint / lint-type-overflow2.stderr
1 error: literal out of range for `i8`
2   --> $DIR/lint-type-overflow2.rs:7:20
3    |
4 LL |     let x2: i8 = --128;
5    |                    ^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/lint-type-overflow2.rs:3:9
9    |
10 LL | #![deny(overflowing_literals)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 error: literal out of range for `f32`
14   --> $DIR/lint-type-overflow2.rs:9:14
15    |
16 LL |     let x = -3.40282357e+38_f32;
17    |              ^^^^^^^^^^^^^^^^^^
18
19 error: literal out of range for `f32`
20   --> $DIR/lint-type-overflow2.rs:10:14
21    |
22 LL |     let x =  3.40282357e+38_f32;
23    |              ^^^^^^^^^^^^^^^^^^
24
25 error: literal out of range for `f64`
26   --> $DIR/lint-type-overflow2.rs:11:14
27    |
28 LL |     let x = -1.7976931348623159e+308_f64;
29    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: literal out of range for `f64`
32   --> $DIR/lint-type-overflow2.rs:12:14
33    |
34 LL |     let x =  1.7976931348623159e+308_f64;
35    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37 error: aborting due to 5 previous errors
38