rust-clippy/tests/ui/unit_cmp.stderr

17 lines
461 B
Text
Raw Normal View History

error: ==-comparison of unit values detected. This will always be true
2018-10-06 16:18:06 +00:00
--> $DIR/unit_cmp.rs:26:8
|
2018-10-06 16:18:06 +00:00
26 | if { true; } == { false; } {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::unit-cmp` implied by `-D warnings`
error: >-comparison of unit values detected. This will always be false
2018-10-06 16:18:06 +00:00
--> $DIR/unit_cmp.rs:29:8
|
2018-10-06 16:18:06 +00:00
29 | if { true; } > { false; } {
| ^^^^^^^^^^^^^^^^^^^^^^
2018-01-16 16:06:27 +00:00
error: aborting due to 2 previous errors