diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-02 07:53:07 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-10 08:41:23 +0000 |
| commit | 7f4093e78bbddae798e3eaf4d713da75c6315877 (patch) | |
| tree | 25cbaf81aacbda718f2f13680367aadfcad0e757 /tests/ui/unsafe | |
| parent | 1b9d38dd08d2e09b2ea6b18a0201252203f63e27 (diff) | |
| download | rust-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.stderr | 12 |
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`. |
