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
105 B
Rust
Raw Normal View History

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