]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2294-if-let-guard/bindings.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[rust.git] / src / test / ui / rfc-2294-if-let-guard / bindings.rs
1 #![feature(if_let_guard)]
2
3 fn main() {
4     match Some(None) {
5         Some(x) if let Some(y) = x => (x, y),
6         _ => y, //~ ERROR cannot find value `y`
7     }
8     y //~ ERROR cannot find value `y`
9 }