diff --git a/src/flow_control/loop/nested.md b/src/flow_control/loop/nested.md index 01c55a5594..01e8f39715 100644 --- a/src/flow_control/loop/nested.md +++ b/src/flow_control/loop/nested.md @@ -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 { @@ -26,4 +26,4 @@ fn main() { println!("Exited the outer loop"); } -``` \ No newline at end of file +```