rust/src/test/ui/let-else/let-else-scope.rs
2021-08-30 20:18:43 -05:00

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
};
}