2020-04-16 06:50:32 +00:00
|
|
|
//@ run-fail
|
|
|
|
//@ error-pattern:explicit panic
|
2020-05-07 15:39:02 +00:00
|
|
|
//@ ignore-emscripten no processes
|
2014-03-05 23:28:08 +00:00
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
fn build1() -> Vec<isize> {
|
2016-05-27 02:39:36 +00:00
|
|
|
vec![0, 0, 0, 0, 0, 0, 0]
|
2011-09-19 21:20:15 +00:00
|
|
|
}
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
fn build2() -> Vec<isize> {
|
2014-10-09 19:17:22 +00:00
|
|
|
panic!();
|
2011-09-19 21:20:15 +00:00
|
|
|
}
|
|
|
|
|
2016-05-27 02:39:36 +00:00
|
|
|
struct Blk {
|
|
|
|
node: Vec<isize>,
|
|
|
|
span: Vec<isize>,
|
|
|
|
}
|
2013-01-26 08:25:41 +00:00
|
|
|
|
2011-09-19 21:20:15 +00:00
|
|
|
fn main() {
|
2013-08-17 15:37:42 +00:00
|
|
|
let _blk = Blk {
|
2011-09-19 21:20:15 +00:00
|
|
|
node: build1(),
|
2016-05-27 02:39:36 +00:00
|
|
|
span: build2(),
|
2011-09-19 21:20:15 +00:00
|
|
|
};
|
2013-02-01 01:51:01 +00:00
|
|
|
}
|