File tree 5 files changed +8
-9
lines changed
5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 3225
3225
"ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.rs",
3226
3226
"ui/nll/user-annotations/issue-57731-ascibed-coupled-types.rs",
3227
3227
"ui/numbers-arithmetic/issue-105626.rs",
3228
- "ui/numbers-arithmetic/issue-8460-const.rs",
3229
3228
"ui/numbers-arithmetic/issue-8460.rs",
3230
3229
"ui/object-safety/issue-102762.rs",
3231
3230
"ui/object-safety/issue-102933.rs",
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
13
13
error: this arithmetic operation will overflow
14
14
--> $DIR/lint-overflowing-ops.rs:226:15
15
15
|
16
- LL | let _x = &(-i8::MIN);
16
+ LL | let _n = &(-i8::MIN);
17
17
| ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
18
18
19
19
error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775
775
error: this arithmetic operation will overflow
776
776
--> $DIR/lint-overflowing-ops.rs:225:14
777
777
|
778
- LL | let _x = -i8::MIN;
778
+ LL | let _n = -i8::MIN;
779
779
| ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780
780
781
781
error: this operation will panic at runtime
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
13
13
error: this arithmetic operation will overflow
14
14
--> $DIR/lint-overflowing-ops.rs:226:15
15
15
|
16
- LL | let _x = &(-i8::MIN);
16
+ LL | let _n = &(-i8::MIN);
17
17
| ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
18
18
19
19
error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775
775
error: this arithmetic operation will overflow
776
776
--> $DIR/lint-overflowing-ops.rs:225:14
777
777
|
778
- LL | let _x = -i8::MIN;
778
+ LL | let _n = -i8::MIN;
779
779
| ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780
780
781
781
error: this operation will panic at runtime
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
13
13
error: this arithmetic operation will overflow
14
14
--> $DIR/lint-overflowing-ops.rs:226:15
15
15
|
16
- LL | let _x = &(-i8::MIN);
16
+ LL | let _n = &(-i8::MIN);
17
17
| ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
18
18
19
19
error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775
775
error: this arithmetic operation will overflow
776
776
--> $DIR/lint-overflowing-ops.rs:225:14
777
777
|
778
- LL | let _x = -i8::MIN;
778
+ LL | let _n = -i8::MIN;
779
779
| ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780
780
781
781
error: this operation will panic at runtime
Original file line number Diff line number Diff line change @@ -222,8 +222,8 @@ fn main() {
222
222
let _n = usize:: MAX * 5 ; //~ ERROR: arithmetic operation will overflow
223
223
let _n = & ( usize:: MAX * 5 ) ; //~ ERROR: arithmetic operation will overflow
224
224
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
227
227
228
228
229
229
// Division
You can’t perform that action at this time.
0 commit comments