]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0508]: cannot move out of type `[T]`, a non-copy slice |
46de9a89 | 2 | --> $DIR/issue-12567.rs:2:11 |
8faf50e0 | 3 | | |
48663c56 XL |
4 | LL | match (l1, l2) { |
5 | | ^^^^^^^^ cannot move out of here | |
6 | ... | |
8faf50e0 | 7 | LL | (&[], &[hd, ..]) | (&[hd, ..], &[]) |
48663c56 XL |
8 | | -- data moved here |
9 | LL | => println!("one empty"), | |
10 | LL | (&[hd1, ..], &[hd2, ..]) | |
72b1a166 | 11 | | --- ...and here |
48663c56 | 12 | | |
d9bb1a4e | 13 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
8faf50e0 XL |
14 | |
15 | error[E0508]: cannot move out of type `[T]`, a non-copy slice | |
46de9a89 | 16 | --> $DIR/issue-12567.rs:2:11 |
8faf50e0 | 17 | | |
48663c56 XL |
18 | LL | match (l1, l2) { |
19 | | ^^^^^^^^ cannot move out of here | |
20 | ... | |
21 | LL | (&[], &[hd, ..]) | (&[hd, ..], &[]) | |
22 | | -- data moved here | |
23 | LL | => println!("one empty"), | |
8faf50e0 | 24 | LL | (&[hd1, ..], &[hd2, ..]) |
72b1a166 | 25 | | --- ...and here |
8faf50e0 | 26 | | |
d9bb1a4e | 27 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
8faf50e0 | 28 | |
48663c56 | 29 | error: aborting due to 2 previous errors |
8faf50e0 XL |
30 | |
31 | For more information about this error, try `rustc --explain E0508`. |