LL | S[0];
| ^^^^ cannot move out of borrowed content
+error[E0507]: cannot move out of data in a `&` reference
+ --> $DIR/dst-index.rs:41:5
+ |
+LL | S[0];
+ | ^^^^
+ | |
+ | cannot move out of data in a `&` reference
+ | cannot move
+
error[E0507]: cannot move out of borrowed content
--> $DIR/dst-index.rs:44:5
|
LL | T[0];
| ^^^^ cannot move out of borrowed content
-error: aborting due to 4 previous errors
+error[E0507]: cannot move out of data in a `&` reference
+ --> $DIR/dst-index.rs:44:5
+ |
+LL | T[0];
+ | ^^^^
+ | |
+ | cannot move out of data in a `&` reference
+ | cannot move
+
+error: aborting due to 6 previous errors
Some errors occurred: E0161, E0507.
For more information about an error, try `rustc --explain E0161`.