diff --git a/src/test/ui/lint/lint-type-overflow2.stderr b/src/test/ui/lint/lint-type-overflow2.stderr index 78dd282c88d8f..1fb63ac759579 100644 --- a/src/test/ui/lint/lint-type-overflow2.stderr +++ b/src/test/ui/lint/lint-type-overflow2.stderr @@ -34,11 +34,11 @@ warning: literal out of range for f64 LL | let x = 1.7976931348623159e+308_f64; //~ warn: literal out of range for f64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -warning: attempt to negate with overflow +warning: this expression will panic at runtime --> $DIR/lint-type-overflow2.rs:19:18 | LL | let x2: i8 = --128; //~ warn: literal out of range for i8 - | ^^^^^ + | ^^^^^ attempt to negate with overflow | note: lint level defined here --> $DIR/lint-type-overflow2.rs:13:9 @@ -46,9 +46,3 @@ note: lint level defined here LL | #![warn(const_err)] | ^^^^^^^^^ -warning: this expression will panic at runtime - --> $DIR/lint-type-overflow2.rs:19:18 - | -LL | let x2: i8 = --128; //~ warn: literal out of range for i8 - | ^^^^^ attempt to negate with overflow -