Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update test output
  • Loading branch information
matthiaskrgr committed Apr 29, 2020
1 parent 9a3b0a0 commit 34c75cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/ui/implicit_saturating_sub.stderr
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
error: this arithmetic operation will overflow
--> $DIR/implicit_saturating_sub.rs:31:25
|
LL | let mut u_16: u16 = end_16 - start_16;
| ^^^^^^^^^^^^^^^^^ attempt to subtract with overflow
|
= note: `#[deny(arithmetic_overflow)]` on by default

error: Implicitly performing saturating subtraction
--> $DIR/implicit_saturating_sub.rs:13:5
|
Expand Down Expand Up @@ -184,5 +192,5 @@ LL | | i_64 -= 1;
LL | | }
| |_____^ help: try: `i_64 = i_64.saturating_sub(1);`

error: aborting due to 23 previous errors
error: aborting due to 24 previous errors

0 comments on commit 34c75cf

Please sign in to comment.