]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/bindings-after-at/borrowck-move-and-move.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / pattern / bindings-after-at / borrowck-move-and-move.stderr
CommitLineData
dfeec247 1error[E0382]: use of moved value
29967ef6 2 --> $DIR/borrowck-move-and-move.rs:13:9
dfeec247
XL
3 |
4LL | let a @ b = U;
29967ef6 5 | ^^^^- - move occurs because value has type `U`, which does not implement the `Copy` trait
dfeec247 6 | | |
29967ef6
XL
7 | | value moved here
8 | value used here after move
dfeec247 9
29967ef6
XL
10error[E0382]: use of partially moved value
11 --> $DIR/borrowck-move-and-move.rs:15:9
dfeec247
XL
12 |
13LL | let a @ (b, c) = (U, U);
29967ef6 14 | ^^^^^^^^-^
dfeec247 15 | | |
29967ef6
XL
16 | | value partially moved here
17 | value used here after partial move
18 |
19 = note: partial move occurs because value has type `U`, which does not implement the `Copy` trait
dfeec247 20
29967ef6
XL
21error[E0382]: use of partially moved value
22 --> $DIR/borrowck-move-and-move.rs:17:9
dfeec247
XL
23 |
24LL | let a @ (b, c) = (u(), u());
29967ef6 25 | ^^^^^^^^-^
dfeec247 26 | | |
29967ef6
XL
27 | | value partially moved here
28 | value used here after partial move
29 |
30 = note: partial move occurs because value has type `U`, which does not implement the `Copy` trait
dfeec247
XL
31
32error[E0382]: use of moved value
29967ef6 33 --> $DIR/borrowck-move-and-move.rs:20:16
dfeec247
XL
34 |
35LL | match Ok(U) {
6a06907d 36 | ----- move occurs because value has type `Result<U, U>`, which does not implement the `Copy` trait
dfeec247
XL
37LL | a @ Ok(b) | a @ Err(b) => {}
38 | -------^-
39 | | |
40 | | value used here after move
41 | value moved here
42
43error[E0382]: use of moved value
29967ef6 44 --> $DIR/borrowck-move-and-move.rs:20:29
dfeec247
XL
45 |
46LL | match Ok(U) {
6a06907d 47 | ----- move occurs because value has type `Result<U, U>`, which does not implement the `Copy` trait
dfeec247
XL
48LL | a @ Ok(b) | a @ Err(b) => {}
49 | --------^-
50 | | |
51 | | value used here after move
52 | value moved here
53
29967ef6
XL
54error[E0382]: use of partially moved value
55 --> $DIR/borrowck-move-and-move.rs:27:9
dfeec247 56 |
dfeec247 57LL | xs @ [a, .., b] => {}
29967ef6 58 | ^^^^^^^^^^^^^-^
dfeec247 59 | | |
29967ef6
XL
60 | | value partially moved here
61 | value used here after partial move
62 |
63 = note: partial move occurs because value has type `U`, which does not implement the `Copy` trait
dfeec247 64
29967ef6
XL
65error[E0382]: use of partially moved value
66 --> $DIR/borrowck-move-and-move.rs:31:9
dfeec247 67 |
dfeec247 68LL | xs @ [_, ys @ .., _] => {}
29967ef6 69 | ^^^^^^^^^-------^^^^
dfeec247 70 | | |
29967ef6
XL
71 | | value partially moved here
72 | value used here after partial move
73 |
74 = note: partial move occurs because value has type `U`, which does not implement the `Copy` trait
dfeec247
XL
75
76error[E0382]: use of moved value
29967ef6 77 --> $DIR/borrowck-move-and-move.rs:24:12
dfeec247
XL
78 |
79LL | fn fun(a @ b: U) {}
29967ef6 80 | ^^^^-
dfeec247 81 | | |
29967ef6
XL
82 | | value moved here
83 | value used here after move
1b1a35ee 84 | move occurs because value has type `U`, which does not implement the `Copy` trait
dfeec247 85
74b04a01 86error: aborting due to 8 previous errors
dfeec247 87
74b04a01 88For more information about this error, try `rustc --explain E0382`.