1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#[prelude_import] use ::std::prelude::rust_2015::*; #[macro_use] extern crate std; // compile-flags: -Zunpretty=hir // check-pass fn foo(x: Option<u32>) { let Some(_) = x else { { ::std::rt::begin_panic("explicit panic") } }; } fn main() { }