rust/tests/ui/panic-runtime/unwind-rec.rs
2025-01-23 20:51:29 +08:00

16 lines
202 B
Rust

//@ run-fail
//@ error-pattern:explicit panic
//@ needs-subprocess
fn build() -> Vec<isize> {
panic!();
}
struct Blk {
node: Vec<isize>,
}
fn main() {
let _blk = Blk { node: build() };
}