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-
91error[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
113 |
124LL | let a @ b = U;
135 | ^^^^^ binds an already bound by-move value by moving it
146
157error[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
179 |
1810LL | let a @ (b, c) = (U, U);
1911 | ^^^^^^^^^^ binds an already bound by-move value by moving it
2012
2113error[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
2315 |
2416LL | let a @ (b, c) = (u(), u());
2517 | ^^^^^^^^^^ binds an already bound by-move value by moving it
2618
2719error[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
2921 |
3022LL | a @ Ok(b) | a @ Err(b) => {}
3123 | ^^^^^^^^^ binds an already bound by-move value by moving it
3224
3325error[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
3527 |
3628LL | a @ Ok(b) | a @ Err(b) => {}
3729 | ^^^^^^^^^^ binds an already bound by-move value by moving it
3830
3931error[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
4133 |
4234LL | xs @ [a, .., b] => {}
4335 | ^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it
4436
4537error[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
4739 |
4840LL | xs @ [_, ys @ .., _] => {}
4941 | ^^^^^^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it
5042
5143error[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
5345 |
5446LL | fn fun(a @ b: U) {}
5547 | ^^^^^ binds an already bound by-move value by moving it
5648
5749error[E0382]: use of moved value
58- --> $DIR/borrowck-move-and-move.rs:13 :13
50+ --> $DIR/borrowck-move-and-move.rs:12 :13
5951 |
6052LL | let a @ b = U;
6153 | ----^ - move occurs because value has type `main::U`, which does not implement the `Copy` trait
@@ -64,7 +56,7 @@ LL | let a @ b = U;
6456 | value moved here
6557
6658error[E0382]: use of moved value
67- --> $DIR/borrowck-move-and-move.rs:17 :17
59+ --> $DIR/borrowck-move-and-move.rs:16 :17
6860 |
6961LL | let a @ (b, c) = (U, U);
7062 | --------^- ------ 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);
7365 | value moved here
7466
7567error[E0382]: use of moved value
76- --> $DIR/borrowck-move-and-move.rs:21 :17
68+ --> $DIR/borrowck-move-and-move.rs:20 :17
7769 |
7870LL | let a @ (b, c) = (u(), u());
7971 | --------^- ---------- 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());
8274 | value moved here
8375
8476error[E0382]: use of moved value
85- --> $DIR/borrowck-move-and-move.rs:26 :16
77+ --> $DIR/borrowck-move-and-move.rs:25 :16
8678 |
8779LL | match Ok(U) {
8880 | ----- 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) => {}
9385 | value moved here
9486
9587error[E0382]: use of moved value
96- --> $DIR/borrowck-move-and-move.rs:26 :29
88+ --> $DIR/borrowck-move-and-move.rs:25 :29
9789 |
9890LL | match Ok(U) {
9991 | ----- 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) => {}
10496 | value moved here
10597
10698error[E0382]: use of moved value
107- --> $DIR/borrowck-move-and-move.rs:38 :22
99+ --> $DIR/borrowck-move-and-move.rs:37 :22
108100 |
109101LL | match [u(), u(), u(), u()] {
110102 | -------------------- move occurs because value has type `[main::U; 4]`, which does not implement the `Copy` trait
@@ -115,7 +107,7 @@ LL | xs @ [a, .., b] => {}
115107 | value moved here
116108
117109error[E0382]: use of moved value
118- --> $DIR/borrowck-move-and-move.rs:44 :18
110+ --> $DIR/borrowck-move-and-move.rs:43 :18
119111 |
120112LL | match [u(), u(), u(), u()] {
121113 | -------------------- move occurs because value has type `[main::U; 4]`, which does not implement the `Copy` trait
@@ -126,7 +118,7 @@ LL | xs @ [_, ys @ .., _] => {}
126118 | value moved here
127119
128120error[E0382]: use of moved value
129- --> $DIR/borrowck-move-and-move.rs:33 :16
121+ --> $DIR/borrowck-move-and-move.rs:32 :16
130122 |
131123LL | fn fun(a @ b: U) {}
132124 | ----^
0 commit comments