]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-12567.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-12567.stderr
1 error[E0508]: cannot move out of type `[T]`, a non-copy slice
2   --> $DIR/issue-12567.rs:2:11
3    |
4 LL |     match (l1, l2) {
5    |           ^^^^^^^^ cannot move out of here
6 ...
7 LL |         (&[], &[hd, ..]) | (&[hd, ..], &[])
8    |                 -- data moved here
9 LL |             => println!("one empty"),
10 LL |         (&[hd1, ..], &[hd2, ..])
11    |            --- ...and here
12    |
13    = note: move occurs because these variables have types that don't implement the `Copy` trait
14
15 error[E0508]: cannot move out of type `[T]`, a non-copy slice
16   --> $DIR/issue-12567.rs:2:11
17    |
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"),
24 LL |         (&[hd1, ..], &[hd2, ..])
25    |                        --- ...and here
26    |
27    = note: move occurs because these variables have types that don't implement the `Copy` trait
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0508`.