]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2294-if-let-guard/bindings.rs
Rollup merge of #88137 - joshtriplett:osx-strip-symbols-no-option, r=michaelwoerister
[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 }