We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8936896 commit b741afcCopy full SHA for b741afc
tests/ui/implicit_saturating_sub.stderr
@@ -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
12
+ --> $DIR/implicit_saturating_sub.rs:14:13
13
14
15
16
17
+ | |_____________^ help: try: `i.saturating_sub(1);`
18
19
+error: aborting due to 2 previous errors
20
0 commit comments