Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
regions
/
regions-pattern-typing-issue-19997.rs
blob: 39190697fe70ee8fc2de7fd8231f7faebcd91044 [
file
] [
log
] [
blame
]
fn
main
()
{
let
a0
=
0
;
let
f
=
1
;
let
mut
a1
=
&
a0
;
match
(&
a1
,)
{
(&
ref
b0
,)
=>
{
a1
=
&
f
;
//~ ERROR cannot assign to `a1` because it is borrowed
drop
(
b0
);
}
}
}