1 error[E0507]: cannot move out of data in a `&` reference
2 --> $DIR/issue-40402-2.rs:15:10
4 LL | let (a, b) = x[0]; //~ ERROR cannot move out of indexed content
7 | cannot move out of data in a `&` reference
10 error[E0507]: cannot move out of data in a `&` reference
11 --> $DIR/issue-40402-2.rs:15:13
13 LL | let (a, b) = x[0]; //~ ERROR cannot move out of indexed content
16 | cannot move out of data in a `&` reference
19 error[E0507]: cannot move out of borrowed content
20 --> $DIR/issue-40402-2.rs:15:18
22 LL | let (a, b) = x[0]; //~ ERROR cannot move out of indexed content
25 | | | cannot move out of borrowed content
26 | | | help: consider borrowing here: `&x[0]`
30 note: move occurs because these variables have types that don't implement the `Copy` trait
31 --> $DIR/issue-40402-2.rs:15:10
33 LL | let (a, b) = x[0]; //~ ERROR cannot move out of indexed content
36 error: aborting due to 3 previous errors
38 For more information about this error, try `rustc --explain E0507`.