File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -34,21 +34,15 @@ warning: literal out of range for f64
3434LL | let x = 1.7976931348623159e+308_f64; //~ warn: literal out of range for f64
3535 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3636
37- warning: attempt to negate with overflow
37+ warning: this expression will panic at runtime
3838 --> $DIR/lint-type-overflow2.rs:19:18
3939 |
4040LL | let x2: i8 = --128; //~ warn: literal out of range for i8
41- | ^^^^^
41+ | ^^^^^ attempt to negate with overflow
4242 |
4343note: lint level defined here
4444 --> $DIR/lint-type-overflow2.rs:13:9
4545 |
4646LL | #![warn(const_err)]
4747 | ^^^^^^^^^
4848
49- warning: this expression will panic at runtime
50- --> $DIR/lint-type-overflow2.rs:19:18
51- |
52- LL | let x2: i8 = --128; //~ warn: literal out of range for i8
53- | ^^^^^ attempt to negate with overflow
54-
You can’t perform that action at this time.
0 commit comments