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