mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 10:33:27 +00:00
6b6253016f
rustc now (https://github.com/rust-lang/rust/issues/33525) does not report an error count anymore, because it was not correct in many cases.
33 lines
762 B
Text
33 lines
762 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 }
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D unused-label` implied by `-D warnings`
|
|
|
|
error: unused label `'same_label_in_two_fns`
|
|
--> 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 previous error(s)
|
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
To learn more, run the command again with --verbose.
|