]> 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 a85eb32841f2bc7e6b08a735f132541ef2e6b3c9..56293403043d6987eae8d8b921318ce1a5b02d42 100644 (file)
@@ -1,16 +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: `-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