Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
rfcs
/
rfc-2294-if-let-guard
/
bindings.rs
blob: 1f32e4af121f2b240c496cea98272fd2f9c9ed4d [
file
] [
log
] [
blame
] [
edit
]
#![
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`
}