]> git.lizzy.rs Git - rust.git/blob - tests/ui/if_not_else.stderr
remove all //~ from tests
[rust.git] / tests / ui / if_not_else.stderr
1 error: Unnecessary boolean `not` operation
2   --> $DIR/if_not_else.rs:9:5
3    |
4 9  |       if !bla() {
5    |  _____^ starting here...
6 10 | |         println!("Bugs");
7 11 | |     } else {
8 12 | |         println!("Bunny");
9 13 | |     }
10    | |_____^ ...ending here
11    |
12 note: lint level defined here
13   --> $DIR/if_not_else.rs:4:9
14    |
15 4  | #![deny(if_not_else)]
16    |         ^^^^^^^^^^^
17    = help: remove the `!` and swap the blocks of the if/else
18
19 error: Unnecessary `!=` operation
20   --> $DIR/if_not_else.rs:14:5
21    |
22 14 |       if 4 != 5 {
23    |  _____^ starting here...
24 15 | |         println!("Bugs");
25 16 | |     } else {
26 17 | |         println!("Bunny");
27 18 | |     }
28    | |_____^ ...ending here
29    |
30    = help: change to `==` and swap the blocks of the if/else
31
32 error: aborting due to 2 previous errors
33