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