Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
nll
/
issue-52669.rs
blob: 6027e988141280c46c64692ceabf713e82926c1c [
file
] [
log
] [
blame
]
#![
feature
(
nll
)]
struct
A
{
b
:
B
,
}
#[
derive
(
Clone
)]
struct
B
;
fn
foo
(
_
:
A
)
{}
fn
bar
(
mut
a
:
A
)
->
B
{
a
.
b
=
B
;
foo
(
a
);
a
.
b
.
clone
()
//~^ ERROR borrow of moved value
}
fn
main
()
{}