diff --git a/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs b/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs index 7a957e1c50..a27996593a 100644 --- a/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs +++ b/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs @@ -43,7 +43,7 @@ fn foo() { r#" fn foo() { 'a: loop { - try { + async { break; //^^^^^ error: break outside of loop break 'a;