2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
|
|
|
// error-pattern:explicit panic
|
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
|
|
|
}
|