mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
66 lines
1.6 KiB
Plaintext
66 lines
1.6 KiB
Plaintext
warning: label name `'many_used_shadowed` shadows a label name that is already in scope
|
|
--> $DIR/unused_labels.rs:61:9
|
|
|
|
|
LL | 'many_used_shadowed: for _ in 0..10 {
|
|
| ------------------- first declared here
|
|
LL |
|
|
LL | 'many_used_shadowed: for _ in 0..10 {
|
|
| ^^^^^^^^^^^^^^^^^^^ label `'many_used_shadowed` already in scope
|
|
|
|
warning: unused label
|
|
--> $DIR/unused_labels.rs:10:5
|
|
|
|
|
LL | 'unused_while_label: while 0 == 0 {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unused_labels.rs:7:9
|
|
|
|
|
LL | #![warn(unused_labels)]
|
|
| ^^^^^^^^^^^^^
|
|
|
|
warning: unused label
|
|
--> $DIR/unused_labels.rs:15:5
|
|
|
|
|
LL | 'unused_while_let_label: while let Some(_) = opt {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: unused label
|
|
--> $DIR/unused_labels.rs:19:5
|
|
|
|
|
LL | 'unused_for_label: for _ in 0..10 {
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
warning: unused label
|
|
--> $DIR/unused_labels.rs:35:9
|
|
|
|
|
LL | 'unused_loop_label_inner_2: for _ in 0..10 {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: unused label
|
|
--> $DIR/unused_labels.rs:41:5
|
|
|
|
|
LL | 'unused_loop_label_outer_3: for _ in 0..10 {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: unused label
|
|
--> $DIR/unused_labels.rs:59:5
|
|
|
|
|
LL | 'many_used_shadowed: for _ in 0..10 {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: unused label
|
|
--> $DIR/unused_labels.rs:71:5
|
|
|
|
|
LL | 'unused_loop_label: loop {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: unused label
|
|
--> $DIR/unused_labels.rs:77:5
|
|
|
|
|
LL | 'unused_block_label: {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: 9 warnings emitted
|
|
|