]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[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 | | |
4 | LL | S[0]; | |
5 | | ^^^^ | |
6 | ||
1b1a35ee | 7 | error[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 | | |
10 | LL | T[0]; | |
11 | | ^^^^ | |
12 | ||
dc9dc135 | 13 | error[E0507]: cannot move out of index of `S` |
0731742a | 14 | --> $DIR/dst-index.rs:31:5 |
b7449926 XL |
15 | | |
16 | LL | S[0]; | |
dc9dc135 | 17 | | ^^^^ move occurs because value has type `str`, which does not implement the `Copy` trait |
b7449926 | 18 | |
dc9dc135 | 19 | error[E0507]: cannot move out of index of `T` |
0731742a | 20 | --> $DIR/dst-index.rs:34:5 |
b7449926 XL |
21 | | |
22 | LL | T[0]; | |
1b1a35ee | 23 | | ^^^^ move occurs because value has type `dyn Debug`, which does not implement the `Copy` trait |
b7449926 XL |
24 | |
25 | error: aborting due to 4 previous errors | |
26 | ||
48663c56 | 27 | Some errors have detailed explanations: E0161, E0507. |
b7449926 | 28 | For more information about an error, try `rustc --explain E0161`. |