]> git.lizzy.rs Git - rust.git/blob - tests/ui/ifs_same_cond.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / ifs_same_cond.stderr
1 error: this `if` has the same condition as a previous if
2   --> $DIR/ifs_same_cond.rs:9:15
3    |
4 LL |     } else if b {
5    |               ^
6    |
7    = note: `-D clippy::ifs-same-cond` implied by `-D warnings`
8 note: same as this
9   --> $DIR/ifs_same_cond.rs:8:8
10    |
11 LL |     if b {
12    |        ^
13
14 error: this `if` has the same condition as a previous if
15   --> $DIR/ifs_same_cond.rs:14:15
16    |
17 LL |     } else if a == 1 {
18    |               ^^^^^^
19    |
20 note: same as this
21   --> $DIR/ifs_same_cond.rs:13:8
22    |
23 LL |     if a == 1 {
24    |        ^^^^^^
25
26 error: this `if` has the same condition as a previous if
27   --> $DIR/ifs_same_cond.rs:20:15
28    |
29 LL |     } else if 2 * a == 1 {
30    |               ^^^^^^^^^^
31    |
32 note: same as this
33   --> $DIR/ifs_same_cond.rs:18:8
34    |
35 LL |     if 2 * a == 1 {
36    |        ^^^^^^^^^^
37
38 error: aborting due to 3 previous errors
39