]> git.lizzy.rs Git - rust.git/blob - tests/ui/int_plus_one.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / int_plus_one.stderr
1 error: Unnecessary `>= y + 1` or `x - 1 >=`
2   --> $DIR/int_plus_one.rs:16:5
3    |
4 16 |     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 16 |     x > y;
11    |     ^^^^^
12
13 error: Unnecessary `>= y + 1` or `x - 1 >=`
14   --> $DIR/int_plus_one.rs:17:5
15    |
16 17 |     y + 1 <= x;
17    |     ^^^^^^^^^^
18 help: change `>= y + 1` to `> y` as shown
19    |
20 17 |     y < x;
21    |     ^^^^^
22
23 error: Unnecessary `>= y + 1` or `x - 1 >=`
24   --> $DIR/int_plus_one.rs:19:5
25    |
26 19 |     x - 1 >= y;
27    |     ^^^^^^^^^^
28 help: change `>= y + 1` to `> y` as shown
29    |
30 19 |     x > y;
31    |     ^^^^^
32
33 error: Unnecessary `>= y + 1` or `x - 1 >=`
34   --> $DIR/int_plus_one.rs:20:5
35    |
36 20 |     y <= x - 1;
37    |     ^^^^^^^^^^
38 help: change `>= y + 1` to `> y` as shown
39    |
40 20 |     y < x;
41    |     ^^^^^
42
43 error: aborting due to 4 previous errors
44