From 797da9e8da3a464ba9b0ce6420e4323ed8e53dc1 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Wed, 28 Dec 2022 20:53:55 +0000 Subject: [PATCH] Actually test `async{}` blocks in `async_blocks_are_borders` --- crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;