blob: 7cd54e293b0101b58be7bf4b044ddc699214f130 [file] [log] [blame]
error[E0382]: use of moved value: `x`
--> $DIR/borrowck-loan-in-overloaded-op.rs:31:20
|
LL | let _y = {x} + x.clone(); // the `{x}` forces a move to occur
| - ^ value used here after move
| |
| value moved here
|
= note: move occurs because `x` has type `foo`, which does not implement the `Copy` trait
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.