mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
10 lines
202 B
Rust
10 lines
202 B
Rust
#![feature(if_let_guard)]
|
|
|
|
fn main() {
|
|
match Some(None) {
|
|
Some(x) if let Some(y) = x => (x, y),
|
|
_ => y, //~ ERROR cannot find value `y`
|
|
}
|
|
y //~ ERROR cannot find value `y`
|
|
}
|