]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/if_not_else.stderr
fe0c0837214f1b28aba68c9dde529fe5a6588fd6
[rust.git] / clippy_tests / examples / if_not_else.stderr
1 error: Unnecessary boolean `not` operation
2   --> if_not_else.rs:9:5
3    |
4 9  | /     if !bla() {
5 10 | |         println!("Bugs");
6 11 | |     } else {
7 12 | |         println!("Bunny");
8 13 | |     }
9    | |_____^
10    |
11    = note: `-D 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   --> if_not_else.rs:14:5
16    |
17 14 | /     if 4 != 5 {
18 15 | |         println!("Bugs");
19 16 | |     } else {
20 17 | |         println!("Bunny");
21 18 | |     }
22    | |_____^
23    |
24    = note: `-D if-not-else` implied by `-D warnings`
25    = help: change to `==` and swap the blocks of the if/else
26
27 error: aborting due to previous error(s)
28
29 error: Could not compile `clippy_tests`.
30
31 To learn more, run the command again with --verbose.