2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2014-10-28 13:07:33 -05:00
|
|
|
// error-pattern:explicit panic
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2012-05-29 17:04:22 -05:00
|
|
|
|
2014-06-07 13:13:26 -05:00
|
|
|
use std::sync::Arc;
|
2012-08-10 17:20:03 -05:00
|
|
|
|
2020-04-16 01:50:32 -05:00
|
|
|
enum Err<T> {
|
|
|
|
Errr(Arc<T>),
|
2016-05-26 21:39:36 -05:00
|
|
|
}
|
2012-05-29 17:04:22 -05:00
|
|
|
|
2020-04-16 01:50:32 -05:00
|
|
|
fn foo() -> Err<isize> {
|
2016-05-26 21:39:36 -05:00
|
|
|
panic!();
|
|
|
|
}
|
2012-05-29 17:04:22 -05:00
|
|
|
|
|
|
|
fn main() {
|
2016-05-26 21:39:36 -05:00
|
|
|
let _f = foo();
|
2012-05-29 17:04:22 -05:00
|
|
|
}
|