rust/tests/ui/borrowck/borrowck-fn-in-const-a.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
360 B
Plaintext
Raw Normal View History

error[E0507]: cannot move out of `*x` which is behind a shared reference
--> $DIR/borrowck-fn-in-const-a.rs:6:16
2018-08-08 07:28:26 -05:00
|
LL | return *x
| ^^ move occurs because `*x` has type `String`, which does not implement the `Copy` trait
2018-08-08 07:28:26 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0507`.