1 error: literal out of range for `i8`
2 --> $DIR/lint-type-overflow2.rs:6:20
4 LL | let x2: i8 = --128;
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
12 LL | #![deny(overflowing_literals)]
13 | ^^^^^^^^^^^^^^^^^^^^
15 error: literal out of range for `f32`
16 --> $DIR/lint-type-overflow2.rs:8:14
18 LL | let x = -3.40282357e+38_f32;
21 = note: the literal `3.40282357e+38_f32` does not fit into the type `f32` and will be converted to `f32::INFINITY`
23 error: literal out of range for `f32`
24 --> $DIR/lint-type-overflow2.rs:9:14
26 LL | let x = 3.40282357e+38_f32;
29 = note: the literal `3.40282357e+38_f32` does not fit into the type `f32` and will be converted to `f32::INFINITY`
31 error: literal out of range for `f64`
32 --> $DIR/lint-type-overflow2.rs:10:14
34 LL | let x = -1.7976931348623159e+308_f64;
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 = note: the literal `1.7976931348623159e+308_f64` does not fit into the type `f64` and will be converted to `f64::INFINITY`
39 error: literal out of range for `f64`
40 --> $DIR/lint-type-overflow2.rs:11:14
42 LL | let x = 1.7976931348623159e+308_f64;
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 = note: the literal `1.7976931348623159e+308_f64` does not fit into the type `f64` and will be converted to `f64::INFINITY`
47 error: aborting due to 5 previous errors