File tree 1 file changed +2
-8
lines changed
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
34
34
LL | let x = 1.7976931348623159e+308_f64; //~ warn: literal out of range for f64
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
36
37
- warning: attempt to negate with overflow
37
+ warning: this expression will panic at runtime
38
38
--> $DIR/lint-type-overflow2.rs:19:18
39
39
|
40
40
LL | let x2: i8 = --128; //~ warn: literal out of range for i8
41
- | ^^^^^
41
+ | ^^^^^ attempt to negate with overflow
42
42
|
43
43
note: lint level defined here
44
44
--> $DIR/lint-type-overflow2.rs:13:9
45
45
|
46
46
LL | #![warn(const_err)]
47
47
| ^^^^^^^^^
48
48
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