fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
892 B28 linesraw
1error[E0161]: cannot move a value of type `str`
2  --> $DIR/dst-index.rs:31:5
3   |
4LL |     S[0];
5   |     ^^^^ the size of `str` cannot be statically determined
6
7error[E0161]: cannot move a value of type `dyn Debug`
8  --> $DIR/dst-index.rs:34:5
9   |
10LL |     T[0];
11   |     ^^^^ the size of `dyn Debug` cannot be statically determined
12
13error[E0507]: cannot move out of index of `S`
14  --> $DIR/dst-index.rs:31:5
15   |
16LL |     S[0];
17   |     ^^^^ move occurs because value has type `str`, which does not implement the `Copy` trait
18
19error[E0507]: cannot move out of index of `T`
20  --> $DIR/dst-index.rs:34:5
21   |
22LL |     T[0];
23   |     ^^^^ move occurs because value has type `dyn Debug`, which does not implement the `Copy` trait
24
25error: aborting due to 4 previous errors
26
27Some errors have detailed explanations: E0161, E0507.
28For more information about an error, try `rustc --explain E0161`.