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 Normal View History

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