1
- warning: the feature `bindings_after_at` is incomplete and may cause the compiler to crash
2
- --> $DIR/borrowck-move-and-move.rs:3:12
3
- |
4
- LL | #![feature(bindings_after_at)]
5
- | ^^^^^^^^^^^^^^^^^
6
- |
7
- = note: `#[warn(incomplete_features)]` on by default
8
-
9
1
error[E0007]: cannot bind by-move with sub-bindings
10
- --> $DIR/borrowck-move-and-move.rs:13 :9
2
+ --> $DIR/borrowck-move-and-move.rs:12 :9
11
3
|
12
4
LL | let a @ b = U;
13
5
| ^^^^^ binds an already bound by-move value by moving it
14
6
15
7
error[E0007]: cannot bind by-move with sub-bindings
16
- --> $DIR/borrowck-move-and-move.rs:17 :9
8
+ --> $DIR/borrowck-move-and-move.rs:16 :9
17
9
|
18
10
LL | let a @ (b, c) = (U, U);
19
11
| ^^^^^^^^^^ binds an already bound by-move value by moving it
20
12
21
13
error[E0007]: cannot bind by-move with sub-bindings
22
- --> $DIR/borrowck-move-and-move.rs:21 :9
14
+ --> $DIR/borrowck-move-and-move.rs:20 :9
23
15
|
24
16
LL | let a @ (b, c) = (u(), u());
25
17
| ^^^^^^^^^^ binds an already bound by-move value by moving it
26
18
27
19
error[E0007]: cannot bind by-move with sub-bindings
28
- --> $DIR/borrowck-move-and-move.rs:26 :9
20
+ --> $DIR/borrowck-move-and-move.rs:25 :9
29
21
|
30
22
LL | a @ Ok(b) | a @ Err(b) => {}
31
23
| ^^^^^^^^^ binds an already bound by-move value by moving it
32
24
33
25
error[E0007]: cannot bind by-move with sub-bindings
34
- --> $DIR/borrowck-move-and-move.rs:26 :21
26
+ --> $DIR/borrowck-move-and-move.rs:25 :21
35
27
|
36
28
LL | a @ Ok(b) | a @ Err(b) => {}
37
29
| ^^^^^^^^^^ binds an already bound by-move value by moving it
38
30
39
31
error[E0007]: cannot bind by-move with sub-bindings
40
- --> $DIR/borrowck-move-and-move.rs:38 :9
32
+ --> $DIR/borrowck-move-and-move.rs:37 :9
41
33
|
42
34
LL | xs @ [a, .., b] => {}
43
35
| ^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it
44
36
45
37
error[E0007]: cannot bind by-move with sub-bindings
46
- --> $DIR/borrowck-move-and-move.rs:44 :9
38
+ --> $DIR/borrowck-move-and-move.rs:43 :9
47
39
|
48
40
LL | xs @ [_, ys @ .., _] => {}
49
41
| ^^^^^^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it
50
42
51
43
error[E0007]: cannot bind by-move with sub-bindings
52
- --> $DIR/borrowck-move-and-move.rs:33 :12
44
+ --> $DIR/borrowck-move-and-move.rs:32 :12
53
45
|
54
46
LL | fn fun(a @ b: U) {}
55
47
| ^^^^^ binds an already bound by-move value by moving it
56
48
57
49
error[E0382]: use of moved value
58
- --> $DIR/borrowck-move-and-move.rs:13 :13
50
+ --> $DIR/borrowck-move-and-move.rs:12 :13
59
51
|
60
52
LL | let a @ b = U;
61
53
| ----^ - move occurs because value has type `main::U`, which does not implement the `Copy` trait
@@ -64,7 +56,7 @@ LL | let a @ b = U;
64
56
| value moved here
65
57
66
58
error[E0382]: use of moved value
67
- --> $DIR/borrowck-move-and-move.rs:17 :17
59
+ --> $DIR/borrowck-move-and-move.rs:16 :17
68
60
|
69
61
LL | let a @ (b, c) = (U, U);
70
62
| --------^- ------ move occurs because value has type `(main::U, main::U)`, which does not implement the `Copy` trait
@@ -73,7 +65,7 @@ LL | let a @ (b, c) = (U, U);
73
65
| value moved here
74
66
75
67
error[E0382]: use of moved value
76
- --> $DIR/borrowck-move-and-move.rs:21 :17
68
+ --> $DIR/borrowck-move-and-move.rs:20 :17
77
69
|
78
70
LL | let a @ (b, c) = (u(), u());
79
71
| --------^- ---------- move occurs because value has type `(main::U, main::U)`, which does not implement the `Copy` trait
@@ -82,7 +74,7 @@ LL | let a @ (b, c) = (u(), u());
82
74
| value moved here
83
75
84
76
error[E0382]: use of moved value
85
- --> $DIR/borrowck-move-and-move.rs:26 :16
77
+ --> $DIR/borrowck-move-and-move.rs:25 :16
86
78
|
87
79
LL | match Ok(U) {
88
80
| ----- move occurs because value has type `std::result::Result<main::U, main::U>`, which does not implement the `Copy` trait
@@ -93,7 +85,7 @@ LL | a @ Ok(b) | a @ Err(b) => {}
93
85
| value moved here
94
86
95
87
error[E0382]: use of moved value
96
- --> $DIR/borrowck-move-and-move.rs:26 :29
88
+ --> $DIR/borrowck-move-and-move.rs:25 :29
97
89
|
98
90
LL | match Ok(U) {
99
91
| ----- move occurs because value has type `std::result::Result<main::U, main::U>`, which does not implement the `Copy` trait
@@ -104,7 +96,7 @@ LL | a @ Ok(b) | a @ Err(b) => {}
104
96
| value moved here
105
97
106
98
error[E0382]: use of moved value
107
- --> $DIR/borrowck-move-and-move.rs:38 :22
99
+ --> $DIR/borrowck-move-and-move.rs:37 :22
108
100
|
109
101
LL | match [u(), u(), u(), u()] {
110
102
| -------------------- move occurs because value has type `[main::U; 4]`, which does not implement the `Copy` trait
@@ -115,7 +107,7 @@ LL | xs @ [a, .., b] => {}
115
107
| value moved here
116
108
117
109
error[E0382]: use of moved value
118
- --> $DIR/borrowck-move-and-move.rs:44 :18
110
+ --> $DIR/borrowck-move-and-move.rs:43 :18
119
111
|
120
112
LL | match [u(), u(), u(), u()] {
121
113
| -------------------- move occurs because value has type `[main::U; 4]`, which does not implement the `Copy` trait
@@ -126,7 +118,7 @@ LL | xs @ [_, ys @ .., _] => {}
126
118
| value moved here
127
119
128
120
error[E0382]: use of moved value
129
- --> $DIR/borrowck-move-and-move.rs:33 :16
121
+ --> $DIR/borrowck-move-and-move.rs:32 :16
130
122
|
131
123
LL | fn fun(a @ b: U) {}
132
124
| ----^
0 commit comments