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