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
|
2011-09-14 09:21:28 -07:00
|
|
|
|
2016-05-27 08:09:36 +05:30
|
|
|
fn a() {}
|
2011-09-14 09:21:28 -07:00
|
|
|
|
2016-05-27 08:09:36 +05:30
|
|
|
fn b() {
|
|
|
|
panic!();
|
|
|
|
}
|
2011-09-14 09:21:28 -07:00
|
|
|
|
|
|
|
fn main() {
|
2016-05-27 08:09:36 +05:30
|
|
|
let _x = vec![0];
|
2011-09-14 09:21:28 -07:00
|
|
|
a();
|
2016-05-27 08:09:36 +05:30
|
|
|
let _y = vec![0];
|
2011-09-14 09:21:28 -07:00
|
|
|
b();
|
2013-01-31 17:51:01 -08:00
|
|
|
}
|