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