about summary refs log tree commit diff
path: root/tests/ui/loops
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-05-30 16:01:00 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-06-10 08:41:23 +0000
commit1b9d38dd08d2e09b2ea6b18a0201252203f63e27 (patch)
tree40c029201345dd40a2882efde54ee7da3ab70eb8 /tests/ui/loops
parentb73bf3c0b52d3fa61f0110f3fc867ca69f9f43ae (diff)
downloadrust-1b9d38dd08d2e09b2ea6b18a0201252203f63e27.tar.gz
rust-1b9d38dd08d2e09b2ea6b18a0201252203f63e27.zip
Remove check_mod_loops query and run the checks per-body instead
Diffstat (limited to 'tests/ui/loops')
-rw-r--r--tests/ui/loops/issue-43162.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/loops/issue-43162.stderr b/tests/ui/loops/issue-43162.stderr
index 40d9200058e..f6b6bf2621c 100644
--- a/tests/ui/loops/issue-43162.stderr
+++ b/tests/ui/loops/issue-43162.stderr
@@ -4,12 +4,6 @@ error[E0268]: `break` outside of a loop or labeled block
 LL |     break true;
    |     ^^^^^^^^^^ cannot `break` outside of a loop or labeled block
 
-error[E0268]: `break` outside of a loop or labeled block
-  --> $DIR/issue-43162.rs:7:5
-   |
-LL |     break {};
-   |     ^^^^^^^^ cannot `break` outside of a loop or labeled block
-
 error[E0308]: mismatched types
   --> $DIR/issue-43162.rs:1:13
    |
@@ -18,6 +12,12 @@ LL | fn foo() -> bool {
    |    |
    |    implicitly returns `()` as its body has no tail or `return` expression
 
+error[E0268]: `break` outside of a loop or labeled block
+  --> $DIR/issue-43162.rs:7:5
+   |
+LL |     break {};
+   |     ^^^^^^^^ cannot `break` outside of a loop or labeled block
+
 error: aborting due to 3 previous errors
 
 Some errors have detailed explanations: E0268, E0308.