]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | error[E0507]: cannot move out of `*x` which is behind a shared reference |
48663c56 | 2 | --> $DIR/borrowck-fn-in-const-a.rs:6:16 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | return *x |
1b1a35ee | 5 | | ^^ move occurs because `*x` has type `String`, which does not implement the `Copy` trait |
b7449926 XL |
6 | |
7 | error: aborting due to previous error | |
8 | ||
9 | For more information about this error, try `rustc --explain E0507`. |