blob: 3f601276f8fddcea54dd2431f31d9d42b0c470bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error[E0507]: cannot move out of `*self` which is behind a shared reference
--> $DIR/copy-overflow.rs:12:9
|
LL | *self
| ^^^^^ move occurs because `*self` has type `S<T>`, which does not implement the `Copy` trait
|
help: consider cloning the value if the performance cost is acceptable
|
LL - *self
LL + self.clone()
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0507`.
|