1
1
error[E0382]: use of moved value
2
- --> $DIR/borrowck-move-and-move.rs:13:13
2
+ --> $DIR/borrowck-move-and-move.rs:13:9
3
3
|
4
4
LL | let a @ b = U;
5
- | ----^ - move occurs because value has type `U`, which does not implement the `Copy` trait
5
+ | ^^^^- - move occurs because value has type `U`, which does not implement the `Copy` trait
6
6
| | |
7
- | | value used here after move
8
- | value moved here
7
+ | | value moved here
8
+ | value used here after move
9
9
10
- error[E0382]: use of moved value
11
- --> $DIR/borrowck-move-and-move.rs:15:17
10
+ error[E0382]: use of partially moved value
11
+ --> $DIR/borrowck-move-and-move.rs:15:9
12
12
|
13
13
LL | let a @ (b, c) = (U, U);
14
- | --------^- ------ move occurs because value has type `(U, U)`, which does not implement the `Copy` trait
14
+ | ^^^^^^^^-^
15
15
| | |
16
- | | value used here after move
17
- | value moved here
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
18
20
19
- error[E0382]: use of moved value
20
- --> $DIR/borrowck-move-and-move.rs:17:17
21
+ error[E0382]: use of partially moved value
22
+ --> $DIR/borrowck-move-and-move.rs:17:9
21
23
|
22
24
LL | let a @ (b, c) = (u(), u());
23
- | --------^- ---------- move occurs because value has type `(U, U)`, which does not implement the `Copy` trait
25
+ | ^^^^^^^^-^
24
26
| | |
25
- | | value used here after move
26
- | value moved here
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
27
31
28
32
error[E0382]: use of moved value
29
33
--> $DIR/borrowck-move-and-move.rs:20:16
@@ -47,36 +51,36 @@ LL | a @ Ok(b) | a @ Err(b) => {}
47
51
| | value used here after move
48
52
| value moved here
49
53
50
- error[E0382]: use of moved value
51
- --> $DIR/borrowck-move-and-move.rs:27:22
54
+ error[E0382]: use of partially moved value
55
+ --> $DIR/borrowck-move-and-move.rs:27:9
52
56
|
53
- LL | match [u(), u(), u(), u()] {
54
- | -------------------- move occurs because value has type `[U; 4]`, which does not implement the `Copy` trait
55
57
LL | xs @ [a, .., b] => {}
56
- | -------------^-
58
+ | ^^^^^^^^^^^^^-^
57
59
| | |
58
- | | value used here after move
59
- | value moved here
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
60
64
61
- error[E0382]: use of moved value
62
- --> $DIR/borrowck-move-and-move.rs:31:18
65
+ error[E0382]: use of partially moved value
66
+ --> $DIR/borrowck-move-and-move.rs:31:9
63
67
|
64
- LL | match [u(), u(), u(), u()] {
65
- | -------------------- move occurs because value has type `[U; 4]`, which does not implement the `Copy` trait
66
68
LL | xs @ [_, ys @ .., _] => {}
67
- | --------- ^^^^^^^----
69
+ | ^^^^^^^^^ -------^^^^
68
70
| | |
69
- | | value used here after move
70
- | value moved here
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
71
75
72
76
error[E0382]: use of moved value
73
- --> $DIR/borrowck-move-and-move.rs:24:16
77
+ --> $DIR/borrowck-move-and-move.rs:24:12
74
78
|
75
79
LL | fn fun(a @ b: U) {}
76
- | ----^
80
+ | ^^^^-
77
81
| | |
78
- | | value used here after move
79
- | value moved here
82
+ | | value moved here
83
+ | value used here after move
80
84
| move occurs because value has type `U`, which does not implement the `Copy` trait
81
85
82
86
error: aborting due to 8 previous errors
0 commit comments