rust/src/test/run-fail/unwind-rec.rs

15 lines
158 B
Rust
Raw Normal View History

// error-pattern:fail
fn build() -> Vec<isize> {
panic!();
}
2016-05-26 21:39:36 -05:00
struct Blk {
node: Vec<isize>,
}
fn main() {
2016-05-26 21:39:36 -05:00
let _blk = Blk { node: build() };
}