1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/trivial-bounds-leak-copy.rs:19:5
5 | ^^ cannot move out of borrowed content
7 error[E0507]: cannot move out of `*t` which is behind a `&` reference
8 --> $DIR/trivial-bounds-leak-copy.rs:19:5
10 LL | fn move_out_string(t: &String) -> String {
11 | ------- help: consider changing this to be a mutable reference: `&mut std::string::String`
15 | cannot move out of `*t` which is behind a `&` reference
16 | `t` 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`.