File tree Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 32253225"ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.rs",
32263226"ui/nll/user-annotations/issue-57731-ascibed-coupled-types.rs",
32273227"ui/numbers-arithmetic/issue-105626.rs",
3228- "ui/numbers-arithmetic/issue-8460-const.rs",
32293228"ui/numbers-arithmetic/issue-8460.rs",
32303229"ui/object-safety/issue-102762.rs",
32313230"ui/object-safety/issue-102933.rs",
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
1313error: this arithmetic operation will overflow
1414 --> $DIR/lint-overflowing-ops.rs:226:15
1515 |
16- LL | let _x = &(-i8::MIN);
16+ LL | let _n = &(-i8::MIN);
1717 | ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
1818
1919error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775775error: this arithmetic operation will overflow
776776 --> $DIR/lint-overflowing-ops.rs:225:14
777777 |
778- LL | let _x = -i8::MIN;
778+ LL | let _n = -i8::MIN;
779779 | ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780780
781781error: this operation will panic at runtime
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
1313error: this arithmetic operation will overflow
1414 --> $DIR/lint-overflowing-ops.rs:226:15
1515 |
16- LL | let _x = &(-i8::MIN);
16+ LL | let _n = &(-i8::MIN);
1717 | ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
1818
1919error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775775error: this arithmetic operation will overflow
776776 --> $DIR/lint-overflowing-ops.rs:225:14
777777 |
778- LL | let _x = -i8::MIN;
778+ LL | let _n = -i8::MIN;
779779 | ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780780
781781error: this operation will panic at runtime
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
1313error: this arithmetic operation will overflow
1414 --> $DIR/lint-overflowing-ops.rs:226:15
1515 |
16- LL | let _x = &(-i8::MIN);
16+ LL | let _n = &(-i8::MIN);
1717 | ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
1818
1919error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775775error: this arithmetic operation will overflow
776776 --> $DIR/lint-overflowing-ops.rs:225:14
777777 |
778- LL | let _x = -i8::MIN;
778+ LL | let _n = -i8::MIN;
779779 | ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780780
781781error: this operation will panic at runtime
Original file line number Diff line number Diff line change @@ -222,8 +222,8 @@ fn main() {
222222 let _n = usize:: MAX * 5 ; //~ ERROR: arithmetic operation will overflow
223223 let _n = & ( usize:: MAX * 5 ) ; //~ ERROR: arithmetic operation will overflow
224224
225- let _x = -i8:: MIN ; //~ ERROR this arithmetic operation will overflow
226- let _x = & ( -i8:: MIN ) ; //~ ERROR this arithmetic operation will overflow
225+ let _n = -i8:: MIN ; //~ ERROR this arithmetic operation will overflow
226+ let _n = & ( -i8:: MIN ) ; //~ ERROR this arithmetic operation will overflow
227227
228228
229229 // Division
You can’t perform that action at this time.
0 commit comments