]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unit_cmp.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / unit_cmp.stderr
index fa5f108fad8ceb533a178788b2b05db2c1a0ac24..56293403043d6987eae8d8b921318ce1a5b02d42 100644 (file)
@@ -1,20 +1,26 @@
 error: ==-comparison of unit values detected. This will always be true
-  --> $DIR/unit_cmp.rs:16:8
+  --> $DIR/unit_cmp.rs:12:8
    |
-16 |     if { true; } == { false; } {
-   |        ^^^^^^^^^^^^^^^^^^^^^^^
+LL |       if {
+   |  ________^
+LL | |         true;
+LL | |     } == {
+LL | |         false;
+LL | |     } {}
+   | |_____^
    |
-note: lint level defined here
-  --> $DIR/unit_cmp.rs:4:9
-   |
-4  | #![deny(unit_cmp)]
-   |         ^^^^^^^^
+   = note: `-D clippy::unit-cmp` implied by `-D warnings`
 
 error: >-comparison of unit values detected. This will always be false
-  --> $DIR/unit_cmp.rs:19:8
+  --> $DIR/unit_cmp.rs:18:8
    |
-19 |     if { true; } > { false; } {
-   |        ^^^^^^^^^^^^^^^^^^^^^^
+LL |       if {
+   |  ________^
+LL | |         true;
+LL | |     } > {
+LL | |         false;
+LL | |     } {}
+   | |_____^
 
 error: aborting due to 2 previous errors