Skip to content

Commit 7c56c74

Browse files
committed
Auto merge of #5544 - matthiaskrgr:rustup_46, r=matthiaskrgr
rustup rust-lang/rust#71518 update test output changelog: none
2 parents 9a3b0a0 + 34c75cf commit 7c56c74

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/ui/implicit_saturating_sub.stderr

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
error: this arithmetic operation will overflow
2+
--> $DIR/implicit_saturating_sub.rs:31:25
3+
|
4+
LL | let mut u_16: u16 = end_16 - start_16;
5+
| ^^^^^^^^^^^^^^^^^ attempt to subtract with overflow
6+
|
7+
= note: `#[deny(arithmetic_overflow)]` on by default
8+
19
error: Implicitly performing saturating subtraction
210
--> $DIR/implicit_saturating_sub.rs:13:5
311
|
@@ -184,5 +192,5 @@ LL | | i_64 -= 1;
184192
LL | | }
185193
| |_____^ help: try: `i_64 = i_64.saturating_sub(1);`
186194

187-
error: aborting due to 23 previous errors
195+
error: aborting due to 24 previous errors
188196

0 commit comments

Comments
 (0)