// run-fail // error-pattern:explicit panic // ignore-emscripten no processes use std::sync::Arc; enum Err { Errr(Arc), } fn foo() -> Err { panic!(); } fn main() { let _f = foo(); }