1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/borrowck-fn-in-const-a.rs:19:16
4 LL | return *x //[ast]~ ERROR cannot move out of borrowed content [E0507]
5 | ^^ cannot move out of borrowed content
7 error[E0507]: cannot move out of `*x` which is behind a `&` reference
8 --> $DIR/borrowck-fn-in-const-a.rs:19:16
10 LL | fn broken(x: &String) -> String {
11 | ------- help: consider changing this to be a mutable reference: `&mut std::string::String`
12 LL | return *x //[ast]~ ERROR cannot move out of borrowed content [E0507]
15 | cannot move out of `*x` which is behind a `&` reference
16 | `x` is a `&` reference, so the data it refers to cannot be moved
18 error: aborting due to 2 previous errors
20 For more information about this error, try `rustc --explain E0507`.