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