rust/src/test/ui/let-else/let-else-if.rs

11 lines
206 B
Rust
Raw Normal View History

#![feature(let_else)]
fn main() {
let Some(_) = Some(()) else if true {
//~^ ERROR conditional `else if` is not supported for `let...else`
return;
} else {
return;
};
}