]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-12567.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-12567.stderr
CommitLineData
8faf50e0 1error[E0508]: cannot move out of type `[T]`, a non-copy slice
dfeec247 2 --> $DIR/issue-12567.rs:2:11
8faf50e0 3 |
48663c56
XL
4LL | match (l1, l2) {
5 | ^^^^^^^^ cannot move out of here
6...
8faf50e0 7LL | (&[], &[hd, ..]) | (&[hd, ..], &[])
48663c56
XL
8 | -- data moved here
9LL | => println!("one empty"),
10LL | (&[hd1, ..], &[hd2, ..])
74b04a01 11 | --- ...and here
48663c56 12 |
60c5eb7d 13 = note: move occurs because these variables have types that don't implement the `Copy` trait
8faf50e0
XL
14
15error[E0508]: cannot move out of type `[T]`, a non-copy slice
dfeec247 16 --> $DIR/issue-12567.rs:2:11
8faf50e0 17 |
48663c56
XL
18LL | match (l1, l2) {
19 | ^^^^^^^^ cannot move out of here
20...
21LL | (&[], &[hd, ..]) | (&[hd, ..], &[])
22 | -- data moved here
23LL | => println!("one empty"),
8faf50e0 24LL | (&[hd1, ..], &[hd2, ..])
74b04a01 25 | --- ...and here
8faf50e0 26 |
60c5eb7d 27 = note: move occurs because these variables have types that don't implement the `Copy` trait
8faf50e0 28
48663c56 29error: aborting due to 2 previous errors
8faf50e0
XL
30
31For more information about this error, try `rustc --explain E0508`.