Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
nll
/
self-assign-ref-mut.rs
blob: 1ca4cf3a775ca728a63cc03aaa13e45a6bb6698b [
file
] [
log
] [
blame
]
// Check that `*y` isn't borrowed after `y = y`.
// check-pass
fn
main
()
{
let
mut
x
=
1
;
{
let
mut
y
=
&
mut
x
;
y
=
y
;
y
;
}
x
;
{
let
mut
y
=
&
mut
x
;
y
=
y
;
y
=
y
;
y
;
}
x
;
}