Only run panic tests on targets that can unwind

This commit is contained in:
Oli Scherer 2023-10-30 16:05:25 +00:00
parent bc926f7c33
commit 224ddf8fd9
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
//compile-flags: --edition 2024 -Zunstable-options
// run-pass
// needs-unwind
#![feature(gen_blocks)]
fn main() {

View File

@ -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