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
362 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 12:28:26 +00:00
|
LL | return *x
| ^^ move occurs because `*x` has type `String`, which does not implement the `Copy` trait
2018-08-08 12:28:26 +00:00
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00
For more information about this error, try `rustc --explain E0507`.