fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.2 KiB32 linesraw
1error[E0382]: use of moved value
2  --> $DIR/copy-and-move-mixed.rs:12:19
3   |
4LL |     let a @ NC(b, c) = NC(C, C);
5   |         ----------^-   -------- move occurs because value has type `NC<C, C>`, which does not implement the `Copy` trait
6   |         |         |
7   |         |         value used here after move
8   |         value moved here
9
10error[E0382]: use of moved value
11  --> $DIR/copy-and-move-mixed.rs:15:19
12   |
13LL |     let a @ NC(b, c @ NC(d, e)) = NC(C, NC(C, C));
14   |         ----------^^^^^^^^^^^^-   --------------- move occurs because value has type `NC<C, NC<C, C>>`, which does not implement the `Copy` trait
15   |         |         |
16   |         |         value used here after move
17   |         value moved here
18
19error[E0382]: use of moved value
20  --> $DIR/copy-and-move-mixed.rs:15:29
21   |
22LL |     let a @ NC(b, c @ NC(d, e)) = NC(C, NC(C, C));
23   |                   ----------^-
24   |                   |         |
25   |                   |         value used here after move
26   |                   value moved here
27   |
28   = note: move occurs because value has type `NC<C, C>`, which does not implement the `Copy` trait
29
30error: aborting due to 3 previous errors
31
32For more information about this error, try `rustc --explain E0382`.