diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/coroutine/gen_block_panic.rs | 1 | ||||
| -rw-r--r-- | tests/ui/coroutine/gen_block_panic.stderr | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/coroutine/gen_block_panic.rs b/tests/ui/coroutine/gen_block_panic.rs index 33e2b4b265a..2da0eb512cc 100644 --- a/tests/ui/coroutine/gen_block_panic.rs +++ b/tests/ui/coroutine/gen_block_panic.rs @@ -1,5 +1,6 @@ //compile-flags: --edition 2024 -Zunstable-options // run-pass +// needs-unwind #![feature(gen_blocks)] fn main() { diff --git a/tests/ui/coroutine/gen_block_panic.stderr b/tests/ui/coroutine/gen_block_panic.stderr index 33d2a95cab8..a0a6d1063c4 100644 --- a/tests/ui/coroutine/gen_block_panic.stderr +++ b/tests/ui/coroutine/gen_block_panic.stderr @@ -1,5 +1,5 @@ warning: unreachable statement - --> $DIR/gen_block_panic.rs:9:9 + --> $DIR/gen_block_panic.rs:10:9 | LL | panic!("foo"); | ------------- any code following this expression is unreachable |
