Sign in
fuchsia
/
third_party
/
rust
/
5670d048c0f88af9976b5505c7853b23dd06770d
/
.
/
src
/
test
/
ui
/
nll
/
issue-52669.rs
blob: e33528ac59e68293b8110f65dd93795be2357eee [
file
] [
log
] [
blame
]
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
()
{}