2018-09-15 10:29:29 -05:00
|
|
|
error[E0382]: borrow of moved value: `a.b`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-52669.rs:15:5
|
2018-09-15 10:29:29 -05:00
|
|
|
|
|
|
|
|
LL | foo(a);
|
|
|
|
| - value moved here
|
|
|
|
LL | a.b.clone()
|
|
|
|
| ^^^ value borrowed here after move
|
|
|
|
|
|
|
|
|
= note: move occurs because `a` has type `A`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|