]> git.lizzy.rs Git - rust.git/blob - tests/ui/unit_cmp.stderr
rustup and compile-fail -> ui test move
[rust.git] / tests / ui / unit_cmp.stderr
1 error: ==-comparison of unit values detected. This will always be true
2   --> $DIR/unit_cmp.rs:16:8
3    |
4 16 |     if { true; } == { false; } {  //~ERROR ==-comparison of unit values detected. This will always be true
5    |        ^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/unit_cmp.rs:4:9
9    |
10 4  | #![deny(unit_cmp)]
11    |         ^^^^^^^^
12
13 error: >-comparison of unit values detected. This will always be false
14   --> $DIR/unit_cmp.rs:19:8
15    |
16 19 |     if { true; } > { false; } {  //~ERROR >-comparison of unit values detected. This will always be false
17    |        ^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20