]> git.lizzy.rs Git - rust.git/blob - tests/ui/unit_cmp.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[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; } {
5    |        ^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D unit-cmp` implied by `-D warnings`
8
9 error: >-comparison of unit values detected. This will always be false
10   --> $DIR/unit_cmp.rs:19:8
11    |
12 19 |     if { true; } > { false; } {
13    |        ^^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to 2 previous errors
16