mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
32 lines
721 B
Text
32 lines
721 B
Text
error: unused label `'label`
|
|
--> $DIR/unused_labels.rs:8:5
|
|
|
|
|
8 | 'label: for i in 1..2 {
|
|
| _____^ starting here...
|
|
9 | | if i > 4 { continue }
|
|
10 | | }
|
|
| |_____^ ...ending here
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/unused_labels.rs:5:9
|
|
|
|
|
5 | #![deny(unused_label)]
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: unused label `'a`
|
|
--> $DIR/unused_labels.rs:21:5
|
|
|
|
|
21 | 'a: loop { break }
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: unused label `'same_label_in_two_fns`
|
|
--> $DIR/unused_labels.rs:32:5
|
|
|
|
|
32 | 'same_label_in_two_fns: loop {
|
|
| _____^ starting here...
|
|
33 | | let _ = 1;
|
|
34 | | }
|
|
| |_____^ ...ending here
|
|
|
|
error: aborting due to 3 previous errors
|
|
|