Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs
blob: 97107c2e30f00e151f614e9ddd682f308db760b8 [
file
] [
log
] [
blame
]
fn
main
()
{
let
mut
_a
=
3
;
let
b
=
&
mut
_a
;
{
let
c
=
&*
b
;
_a
=
4
;
//~ ERROR cannot assign to `_a` because it is borrowed
drop
(
c
);
}
drop
(
b
);
}