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