Sign in
fuchsia
/
third_party
/
rust
/
fe6d626abcc6ca994f0554bb78858ccd2b33dcfd
/
.
/
src
/
test
/
ui
/
error-codes
/
E0302.rs
blob: 69f5953deb22335851091b70a59aa1e35b07d4ee [
file
] [
log
] [
blame
]
fn
main
()
{
match
Some
(())
{
None
=>
{
},
option
if
{
option
=
None
;
false
}
=>
{
},
//~ ERROR E0302
//~^ ERROR cannot assign to `option`, as it is immutable for the pattern guard
Some
(
_
)
=>
{
}
}
}