Skip to content

Commit b741afc

Browse files
committed
Added stderr file
1 parent 8936896 commit b741afc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
error: Implicitly performing saturating subtraction
2+
--> $DIR/implicit_saturating_sub.rs:8:5
3+
|
4+
LL | / if i > 0 {
5+
LL | | i -= 1;
6+
LL | | }
7+
| |_____^ help: try: `i.saturating_sub(1);`
8+
|
9+
= note: `-D clippy::implicit-saturating-sub` implied by `-D warnings`
10+
11+
error: Implicitly performing saturating subtraction
12+
--> $DIR/implicit_saturating_sub.rs:14:13
13+
|
14+
LL | / if i > 0 {
15+
LL | | i -= 1;
16+
LL | | }
17+
| |_____________^ help: try: `i.saturating_sub(1);`
18+
19+
error: aborting due to 2 previous errors
20+

0 commit comments

Comments
 (0)