]> git.lizzy.rs Git - rust.git/blob - tests/ui/int_plus_one.stderr
Add run-rustfix for int_plus_one test
[rust.git] / tests / ui / int_plus_one.stderr
1 error: Unnecessary `>= y + 1` or `x - 1 >=`
2   --> $DIR/int_plus_one.rs:9:13
3    |
4 LL |     let _ = x >= y + 1;
5    |             ^^^^^^^^^^
6    |
7    = note: `-D clippy::int-plus-one` implied by `-D warnings`
8 help: change `>= y + 1` to `> y` as shown
9    |
10 LL |     let _ = x > y;
11    |             ^^^^^
12
13 error: Unnecessary `>= y + 1` or `x - 1 >=`
14   --> $DIR/int_plus_one.rs:10:13
15    |
16 LL |     let _ = y + 1 <= x;
17    |             ^^^^^^^^^^
18 help: change `>= y + 1` to `> y` as shown
19    |
20 LL |     let _ = y < x;
21    |             ^^^^^
22
23 error: Unnecessary `>= y + 1` or `x - 1 >=`
24   --> $DIR/int_plus_one.rs:12:13
25    |
26 LL |     let _ = x - 1 >= y;
27    |             ^^^^^^^^^^
28 help: change `>= y + 1` to `> y` as shown
29    |
30 LL |     let _ = x > y;
31    |             ^^^^^
32
33 error: Unnecessary `>= y + 1` or `x - 1 >=`
34   --> $DIR/int_plus_one.rs:13:13
35    |
36 LL |     let _ = y <= x - 1;
37    |             ^^^^^^^^^^
38 help: change `>= y + 1` to `> y` as shown
39    |
40 LL |     let _ = y < x;
41    |             ^^^^^
42
43 error: aborting due to 4 previous errors
44