2022-08-11 21:47:57 -05:00
|
|
|
#[prelude_import]
|
|
|
|
use ::std::prelude::rust_2015::*;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate std;
|
2022-02-27 00:08:31 -06:00
|
|
|
// compile-flags: -Zunpretty=hir
|
|
|
|
// check-pass
|
|
|
|
|
|
|
|
|
2022-08-11 21:47:57 -05:00
|
|
|
|
|
|
|
fn foo(x:
|
|
|
|
Option<u32>) {
|
|
|
|
let Some(_) = x else
|
|
|
|
{
|
|
|
|
|
|
|
|
{ ::std::rt::begin_panic("explicit panic") }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
fn main() { }
|