]> git.lizzy.rs Git - rust.git/blob - tests/ui/panic-runtime/unwind-rec2.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / panic-runtime / unwind-rec2.rs
1 // run-fail
2 // error-pattern:explicit panic
3 // ignore-emscripten no processes
4
5 fn build1() -> Vec<isize> {
6     vec![0, 0, 0, 0, 0, 0, 0]
7 }
8
9 fn build2() -> Vec<isize> {
10     panic!();
11 }
12
13 struct Blk {
14     node: Vec<isize>,
15     span: Vec<isize>,
16 }
17
18 fn main() {
19     let _blk = Blk {
20         node: build1(),
21         span: build2(),
22     };
23 }