]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-12567.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[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:4: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   --> $DIR/issue-12567.rs:8:17
15    |
16 LL |         (&[], &[hd, ..]) | (&[hd, ..], &[])
17    |                 ^^
18 LL |             => println!("one empty"),
19 LL |         (&[hd1, ..], &[hd2, ..])
20    |                        ^^^
21
22 error[E0508]: cannot move out of type `[T]`, a non-copy slice
23   --> $DIR/issue-12567.rs:4:11
24    |
25 LL |     match (l1, l2) {
26    |           ^^^^^^^^ cannot move out of here
27 ...
28 LL |         (&[], &[hd, ..]) | (&[hd, ..], &[])
29    |                 -- data moved here
30 LL |             => println!("one empty"),
31 LL |         (&[hd1, ..], &[hd2, ..])
32    |            --- ...and here
33    |
34 note: move occurs because these variables have types that don't implement the `Copy` trait
35   --> $DIR/issue-12567.rs:8:17
36    |
37 LL |         (&[], &[hd, ..]) | (&[hd, ..], &[])
38    |                 ^^
39 LL |             => println!("one empty"),
40 LL |         (&[hd1, ..], &[hd2, ..])
41    |            ^^^
42
43 error: aborting due to 2 previous errors
44
45 For more information about this error, try `rustc --explain E0508`.