Skip to content

Commit 07e0df2

Browse files
authored
Merge pull request #1729 from kberov/unused_label
Added attribute unused_labels - fixed warning.
2 parents 4c41e00 + d4e8e2b commit 07e0df2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flow_control/loop/nested.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ loops. In these cases, the loops must be annotated with some `'label`, and the
55
label must be passed to the `break`/`continue` statement.
66

77
```rust,editable
8-
#![allow(unreachable_code)]
8+
#![allow(unreachable_code, unused_labels)]
99
1010
fn main() {
1111
'outer: loop {
@@ -26,4 +26,4 @@ fn main() {
2626
2727
println!("Exited the outer loop");
2828
}
29-
```
29+
```

0 commit comments

Comments
 (0)