]> git.lizzy.rs Git - rust.git/blob - tests/ui/int_plus_one.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[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    |             ^^^^^^^^^^ help: change it to: `x > y`
6    |
7    = note: `-D clippy::int-plus-one` implied by `-D warnings`
8
9 error: Unnecessary `>= y + 1` or `x - 1 >=`
10   --> $DIR/int_plus_one.rs:10:13
11    |
12 LL |     let _ = y + 1 <= x;
13    |             ^^^^^^^^^^ help: change it to: `y < x`
14
15 error: Unnecessary `>= y + 1` or `x - 1 >=`
16   --> $DIR/int_plus_one.rs:12:13
17    |
18 LL |     let _ = x - 1 >= y;
19    |             ^^^^^^^^^^ help: change it to: `x > y`
20
21 error: Unnecessary `>= y + 1` or `x - 1 >=`
22   --> $DIR/int_plus_one.rs:13:13
23    |
24 LL |     let _ = y <= x - 1;
25    |             ^^^^^^^^^^ help: change it to: `y < x`
26
27 error: aborting due to 4 previous errors
28