summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panic-runtime/unwind-rec.rs
blob: a9b7ee8ec7d4a981dcef8a7566b249c51508b386 (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() };
}