rust/tests/ui/let-else/let-else.rs

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

9 lines
106 B
Rust
Raw Permalink Normal View History

2022-08-30 07:46:35 -05:00
//@ run-pass
fn main() {
let Some(x) = Some(1) else {
return;
};
assert_eq!(x, 1);
}