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