granite-rust/tests/ui/unpretty/let-else-hir.stdout

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
280 B
Text
Raw Normal View History

2022-08-12 02:47:57 +00:00
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
//@ compile-flags: -Zunpretty=hir
//@ check-pass
2022-08-12 02:47:57 +00:00
fn foo(x:
Option<u32>) {
2024-05-15 20:18:22 +02:00
let Some(_) = x else
{
2022-08-12 02:47:57 +00:00
2024-05-15 20:18:22 +02:00
{ ::std::rt::begin_panic("explicit panic") }
};
}
2022-08-12 02:47:57 +00:00
fn main() { }