2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
|
|
|
// error-pattern:explicit panic
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2011-09-14 11:21:28 -05:00
|
|
|
|
2016-05-26 21:39:36 -05:00
|
|
|
fn a() {}
|
2011-09-14 11:21:28 -05:00
|
|
|
|
2016-05-26 21:39:36 -05:00
|
|
|
fn b() {
|
|
|
|
panic!();
|
|
|
|
}
|
2011-09-14 11:21:28 -05:00
|
|
|
|
|
|
|
fn main() {
|
2016-05-26 21:39:36 -05:00
|
|
|
let _x = vec![0];
|
2011-09-14 11:21:28 -05:00
|
|
|
a();
|
2016-05-26 21:39:36 -05:00
|
|
|
let _y = vec![0];
|
2011-09-14 11:21:28 -05:00
|
|
|
b();
|
2013-01-31 19:51:01 -06:00
|
|
|
}
|