1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/issue-40402-2.rs:15:18
4 LL | let (a, b) = x[0]; //~ ERROR cannot move out of indexed content
7 | | | cannot move out of borrowed content
8 | | | help: consider using a reference instead: `&x[0]`
9 | | move occurs because b has type `std::string::String`, which does not implement the `Copy` trait
10 | move occurs because a has type `std::string::String`, which does not implement the `Copy` trait
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0507`.