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