fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0508]: cannot move out of type `[T]`, a non-copy slice 2 --> $DIR/issue-12567.rs:4:11 3 | 4LL | match (l1, l2) { 5 | ^^^^^^^^ cannot move out of here 6... 7LL | (&[], &[hd, ..]) | (&[hd, ..], &[]) 8 | -- data moved here 9LL | => println!("one empty"), 10LL | (&[hd1, ..], &[hd2, ..]) 11 | --- ...and here 12 | 13note: move occurs because these variables have types that don't implement the `Copy` trait 14 --> $DIR/issue-12567.rs:8:17 15 | 16LL | (&[], &[hd, ..]) | (&[hd, ..], &[]) 17 | ^^ 18LL | => println!("one empty"), 19LL | (&[hd1, ..], &[hd2, ..]) 20 | ^^^ 21 22error[E0508]: cannot move out of type `[T]`, a non-copy slice 23 --> $DIR/issue-12567.rs:4:11 24 | 25LL | match (l1, l2) { 26 | ^^^^^^^^ cannot move out of here 27... 28LL | (&[], &[hd, ..]) | (&[hd, ..], &[]) 29 | -- data moved here 30LL | => println!("one empty"), 31LL | (&[hd1, ..], &[hd2, ..]) 32 | --- ...and here 33 | 34note: move occurs because these variables have types that don't implement the `Copy` trait 35 --> $DIR/issue-12567.rs:8:17 36 | 37LL | (&[], &[hd, ..]) | (&[hd, ..], &[]) 38 | ^^ 39LL | => println!("one empty"), 40LL | (&[hd1, ..], &[hd2, ..]) 41 | ^^^ 42 43error: aborting due to 2 previous errors 44 45For more information about this error, try `rustc --explain E0508`.