summary refs log tree commit diff
path: root/tests/ui/panic-runtime/unwind-rec.rs
blob: d4b53c8876813474df2f2049f8d4a8e83a53afbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ run-fail
//@ error-pattern:explicit panic
//@ ignore-emscripten no processes

fn build() -> Vec<isize> {
    panic!();
}

struct Blk {
    node: Vec<isize>,
}

fn main() {
    let _blk = Blk { node: build() };
}