]> git.lizzy.rs Git - rust.git/blob - tests/ui/if_not_else.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / if_not_else.stderr
1 error: Unnecessary boolean `not` operation
2   --> $DIR/if_not_else.rs:18:5
3    |
4 18 | /     if !bla() {
5 19 | |         println!("Bugs");
6 20 | |     } else {
7 21 | |         println!("Bunny");
8 22 | |     }
9    | |_____^
10    |
11    = note: `-D clippy::if-not-else` implied by `-D warnings`
12    = help: remove the `!` and swap the blocks of the if/else
13
14 error: Unnecessary `!=` operation
15   --> $DIR/if_not_else.rs:23:5
16    |
17 23 | /     if 4 != 5 {
18 24 | |         println!("Bugs");
19 25 | |     } else {
20 26 | |         println!("Bunny");
21 27 | |     }
22    | |_____^
23    |
24    = help: change to `==` and swap the blocks of the if/else
25
26 error: aborting due to 2 previous errors
27