rust/tests/ui/unpretty/pretty-let-else.stdout

19 lines
298 B
Plaintext
Raw Normal View History

2022-08-11 21:47:57 -05:00
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// 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() { }