rust/clippy_tests/examples/unused_labels.stderr

34 lines
789 B
Plaintext
Raw Normal View History

error: unused label `'label`
--> examples/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`
--> examples/unused_labels.rs:21:5
|
2017-02-08 14:58:07 +01:00
21 | 'a: loop { break }
| ^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-label` implied by `-D warnings`
error: unused label `'same_label_in_two_fns`
--> examples/unused_labels.rs:32:5
|
32 | / 'same_label_in_two_fns: loop {
33 | | let _ = 1;
34 | | }
| |_____^
|
= note: `-D unused-label` implied by `-D warnings`
error: aborting due to 3 previous errors
error: Could not compile `clippy_tests`.
To learn more, run the command again with --verbose.