]> git.lizzy.rs Git - rust.git/blob - tests/ui/unit_cmp.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[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 LL |       if {
5    |  ________^
6 LL | |         true;
7 LL | |     } == {
8 LL | |         false;
9 LL | |     } {}
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 LL |       if {
18    |  ________^
19 LL | |         true;
20 LL | |     } > {
21 LL | |         false;
22 LL | |     } {}
23    | |_____^
24
25 error: aborting due to 2 previous errors
26