]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-type-overflow2.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-type-overflow2.stderr
1 warning: literal out of range for i8
2   --> $DIR/lint-type-overflow2.rs:19:20
3    |
4 LL |     let x2: i8 = --128; //~ warn: literal out of range for i8
5    |                    ^^^
6    |
7 note: lint level defined here
8   --> $DIR/lint-type-overflow2.rs:12:9
9    |
10 LL | #![warn(overflowing_literals)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 warning: literal out of range for f32
14   --> $DIR/lint-type-overflow2.rs:21:14
15    |
16 LL |     let x = -3.40282357e+38_f32; //~ warn: literal out of range for f32
17    |              ^^^^^^^^^^^^^^^^^^
18
19 warning: literal out of range for f32
20   --> $DIR/lint-type-overflow2.rs:22:14
21    |
22 LL |     let x =  3.40282357e+38_f32; //~ warn: literal out of range for f32
23    |              ^^^^^^^^^^^^^^^^^^
24
25 warning: literal out of range for f64
26   --> $DIR/lint-type-overflow2.rs:23:14
27    |
28 LL |     let x = -1.7976931348623159e+308_f64; //~ warn: literal out of range for f64
29    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 warning: literal out of range for f64
32   --> $DIR/lint-type-overflow2.rs:24:14
33    |
34 LL |     let x =  1.7976931348623159e+308_f64; //~ warn: literal out of range for f64
35    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37 error: compilation successful
38   --> $DIR/lint-type-overflow2.rs:18:1
39    |
40 LL | / fn main() { //~ ERROR: compilation successful
41 LL | |     let x2: i8 = --128; //~ warn: literal out of range for i8
42 LL | |
43 LL | |     let x = -3.40282357e+38_f32; //~ warn: literal out of range for f32
44 ...  |
45 LL | |     let x =  1.7976931348623159e+308_f64; //~ warn: literal out of range for f64
46 LL | | }
47    | |_^
48
49 error: aborting due to previous error
50