rust-clippy/clippy_tests/examples/unused_labels.stderr
2017-07-03 12:37:30 +08:00

28 lines
603 B
Text

error: unused label `'label`
--> unused_labels.rs:8:5
|
8 | / 'label: for i in 1..2 {
9 | | if i > 4 { continue }
10 | | }
| |_____^
|
= note: `-D unused-label` implied by `-D warnings`
error: unused label `'a`
--> unused_labels.rs:21:5
|
21 | 'a: loop { break }
| ^^^^^^^^^^^^^^^^^^
error: unused label `'same_label_in_two_fns`
--> unused_labels.rs:32:5
|
32 | / 'same_label_in_two_fns: loop {
33 | | let _ = 1;
34 | | }
| |_____^
error: aborting due to 3 previous errors
To learn more, run the command again with --verbose.