about summary refs log tree commit diff
path: root/tests/ui/unsafe
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-06-02 07:53:07 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-06-10 08:41:23 +0000
commit7f4093e78bbddae798e3eaf4d713da75c6315877 (patch)
tree25cbaf81aacbda718f2f13680367aadfcad0e757 /tests/ui/unsafe
parent1b9d38dd08d2e09b2ea6b18a0201252203f63e27 (diff)
downloadrust-7f4093e78bbddae798e3eaf4d713da75c6315877.tar.gz
rust-7f4093e78bbddae798e3eaf4d713da75c6315877.zip
Loop check anon consts on their own
Diffstat (limited to 'tests/ui/unsafe')
-rw-r--r--tests/ui/unsafe/break-inside-unsafe-block-issue-128604.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/unsafe/break-inside-unsafe-block-issue-128604.stderr b/tests/ui/unsafe/break-inside-unsafe-block-issue-128604.stderr
index b7cbe1a5cf4..2f01331db9a 100644
--- a/tests/ui/unsafe/break-inside-unsafe-block-issue-128604.stderr
+++ b/tests/ui/unsafe/break-inside-unsafe-block-issue-128604.stderr
@@ -1,10 +1,4 @@
 error[E0268]: `break` outside of a loop or labeled block
-  --> $DIR/break-inside-unsafe-block-issue-128604.rs:2:28
-   |
-LL |     let a = ["_"; unsafe { break; 1 + 2 }];
-   |                            ^^^^^ cannot `break` outside of a loop or labeled block
-
-error[E0268]: `break` outside of a loop or labeled block
   --> $DIR/break-inside-unsafe-block-issue-128604.rs:14:9
    |
 LL |         break;
@@ -37,6 +31,12 @@ LL |         unsafe {
 LL ~             break 'block;
    |
 
+error[E0268]: `break` outside of a loop or labeled block
+  --> $DIR/break-inside-unsafe-block-issue-128604.rs:2:28
+   |
+LL |     let a = ["_"; unsafe { break; 1 + 2 }];
+   |                            ^^^^^ cannot `break` outside of a loop or labeled block
+
 error: aborting due to 4 previous errors
 
 For more information about this error, try `rustc --explain E0268`.