2018-07-15 14:11:54 -07:00
|
|
|
error[E0508]: cannot move out of type `[T]`, a non-copy slice
|
2019-12-30 01:23:42 +01:00
|
|
|
--> $DIR/issue-12567.rs:2:11
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-04-22 08:40:08 +01:00
|
|
|
LL | match (l1, l2) {
|
|
|
|
|
| ^^^^^^^^ cannot move out of here
|
|
|
|
|
...
|
2018-07-15 14:11:54 -07:00
|
|
|
LL | (&[], &[hd, ..]) | (&[hd, ..], &[])
|
2019-04-22 08:40:08 +01:00
|
|
|
| -- data moved here
|
|
|
|
|
LL | => println!("one empty"),
|
|
|
|
|
LL | (&[hd1, ..], &[hd2, ..])
|
2023-09-30 15:14:07 +00:00
|
|
|
| --- ...and here
|
2019-04-22 08:40:08 +01:00
|
|
|
|
|
2019-11-25 12:32:57 -08:00
|
|
|
= note: move occurs because these variables have types that don't implement the `Copy` trait
|
2024-11-25 20:25:10 -08:00
|
|
|
help: consider removing the borrow
|
2022-12-08 17:14:56 -08:00
|
|
|
|
|
2024-11-25 20:25:10 -08:00
|
|
|
LL - (&[], &[hd, ..]) | (&[hd, ..], &[])
|
|
|
|
|
LL + (&[], [hd, ..]) | (&[hd, ..], &[])
|
|
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
|
|
LL - (&[hd1, ..], &[hd2, ..])
|
|
|
|
|
LL + (&[hd1, ..], [hd2, ..])
|
2022-12-08 17:14:56 -08:00
|
|
|
|
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
error[E0508]: cannot move out of type `[T]`, a non-copy slice
|
2019-12-30 01:23:42 +01:00
|
|
|
--> $DIR/issue-12567.rs:2:11
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-04-22 08:40:08 +01:00
|
|
|
LL | match (l1, l2) {
|
|
|
|
|
| ^^^^^^^^ cannot move out of here
|
|
|
|
|
...
|
|
|
|
|
LL | (&[], &[hd, ..]) | (&[hd, ..], &[])
|
|
|
|
|
| -- data moved here
|
|
|
|
|
LL | => println!("one empty"),
|
2018-07-15 14:11:54 -07:00
|
|
|
LL | (&[hd1, ..], &[hd2, ..])
|
2023-09-30 15:14:07 +00:00
|
|
|
| --- ...and here
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-11-25 12:32:57 -08:00
|
|
|
= note: move occurs because these variables have types that don't implement the `Copy` trait
|
2024-11-25 20:25:10 -08:00
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
|
|
LL - (&[], &[hd, ..]) | (&[hd, ..], &[])
|
|
|
|
|
LL + (&[], [hd, ..]) | (&[hd, ..], &[])
|
|
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
2022-12-08 17:14:56 -08:00
|
|
|
|
|
2024-11-25 20:25:10 -08:00
|
|
|
LL - (&[hd1, ..], &[hd2, ..])
|
|
|
|
|
LL + ([hd1, ..], &[hd2, ..])
|
2022-12-08 17:14:56 -08:00
|
|
|
|
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2019-04-22 08:40:08 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0508`.
|