]> git.lizzy.rs Git - rust.git/blob - tests/ui/unit_cmp.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / unit_cmp.stderr
1 error: ==-comparison of unit values detected. This will always be true
2   --> $DIR/unit_cmp.rs:21:8
3    |
4 21 |       if {
5    |  ________^
6 22 | |         true;
7 23 | |     } == {
8 24 | |         false;
9 25 | |     } {}
10    | |_____^
11    |
12    = note: `-D clippy::unit-cmp` implied by `-D warnings`
13
14 error: >-comparison of unit values detected. This will always be false
15   --> $DIR/unit_cmp.rs:27:8
16    |
17 27 |       if {
18    |  ________^
19 28 | |         true;
20 29 | |     } > {
21 30 | |         false;
22 31 | |     } {}
23    | |_____^
24
25 error: aborting due to 2 previous errors
26