Only run panic tests on targets that can unwind
This commit is contained in:
parent
bc926f7c33
commit
224ddf8fd9
@ -1,5 +1,6 @@
|
||||
//compile-flags: --edition 2024 -Zunstable-options
|
||||
// run-pass
|
||||
// needs-unwind
|
||||
#![feature(gen_blocks)]
|
||||
|
||||
fn main() {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user