Skip to content

Commit

Permalink
Merge pull request #1729 from kberov/unused_label
Browse files Browse the repository at this point in the history
Added attribute unused_labels - fixed warning.
  • Loading branch information
marioidival authored Jul 24, 2023
2 parents 4c41e00 + d4e8e2b commit 07e0df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flow_control/loop/nested.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ loops. In these cases, the loops must be annotated with some `'label`, and the
label must be passed to the `break`/`continue` statement.

```rust,editable
#![allow(unreachable_code)]
#![allow(unreachable_code, unused_labels)]
fn main() {
'outer: loop {
Expand All @@ -26,4 +26,4 @@ fn main() {
println!("Exited the outer loop");
}
```
```

0 comments on commit 07e0df2

Please sign in to comment.