8 lines
148 B
Rust
8 lines
148 B
Rust
#![feature(let_else)]
|
|
|
|
fn main() {
|
|
let Some(x) = Some(2) else {
|
|
panic!("{}", x); //~ ERROR cannot find value `x` in this scope
|
|
};
|
|
}
|