Sign in
fuchsia
/
third_party
/
rust
/
87ef96d3946ed4add766c0a2cd72d8443e92e4a0
/
.
/
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
()
{}