From d4e8e2b15262867a6d8b517f047f2c73a37249d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=80=D0=B0=D1=81=D0=B8=D0=BC=D0=B8=D1=80=20=D0=91?= =?UTF-8?q?=D0=B5=D1=80=D0=BE=D0=B2?= Date: Mon, 17 Jul 2023 00:27:58 +0300 Subject: [PATCH] Added attribute unused_labels --- src/flow_control/loop/nested.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +```