]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unused_labels.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / unused_labels.stderr
index 5a31ada902e31521d4908ef38f5867ccc8078b2d..d2ca0f1b57f0ee153f666335a0e0ce2d86560682 100644 (file)
@@ -1,25 +1,29 @@
 error: unused label `'label`
-  --> $DIR/unused_labels.rs:18:5
+  --> $DIR/unused_labels.rs:5:5
    |
-18 | /     'label: for i in 1..2 {
-19 | |         if i > 4 { continue }
-20 | |     }
+LL | /     'label: for i in 1..2 {
+LL | |         if i > 4 {
+LL | |             continue;
+LL | |         }
+LL | |     }
    | |_____^
    |
    = note: `-D clippy::unused-label` implied by `-D warnings`
 
 error: unused label `'a`
-  --> $DIR/unused_labels.rs:31:5
+  --> $DIR/unused_labels.rs:19:5
    |
-31 |     'a: loop { break }
-   |     ^^^^^^^^^^^^^^^^^^
+LL | /     'a: loop {
+LL | |         break;
+LL | |     }
+   | |_____^
 
 error: unused label `'same_label_in_two_fns`
-  --> $DIR/unused_labels.rs:42:5
+  --> $DIR/unused_labels.rs:32:5
    |
-42 | /     'same_label_in_two_fns: loop {
-43 | |         let _ = 1;
-44 | |     }
+LL | /     'same_label_in_two_fns: loop {
+LL | |         let _ = 1;
+LL | |     }
    | |_____^
 
 error: aborting due to 3 previous errors