2019-11-11 04:39:52 -06:00
|
|
|
warning: the feature `bindings_after_at` is incomplete and may cause the compiler to crash
|
|
|
|
--> $DIR/borrowck-move-and-move.rs:3:12
|
|
|
|
|
|
|
|
|
LL | #![feature(bindings_after_at)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
|
|
|
|
error[E0007]: cannot bind by-move with sub-bindings
|
2019-12-14 17:50:44 -06:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:12:9
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | let a @ b = U;
|
|
|
|
| ^^^^^ binds an already bound by-move value by moving it
|
|
|
|
|
|
|
|
error[E0007]: cannot bind by-move with sub-bindings
|
2019-12-14 17:50:44 -06:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:16:9
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (b, c) = (U, U);
|
|
|
|
| ^^^^^^^^^^ binds an already bound by-move value by moving it
|
|
|
|
|
|
|
|
error[E0007]: cannot bind by-move with sub-bindings
|
2019-12-14 17:50:44 -06:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:20:9
|
|
|
|
|
|
|
|
|
LL | let a @ (b, c) = (u(), u());
|
|
|
|
| ^^^^^^^^^^ binds an already bound by-move value by moving it
|
|
|
|
|
|
|
|
error[E0007]: cannot bind by-move with sub-bindings
|
|
|
|
--> $DIR/borrowck-move-and-move.rs:25:9
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | a @ Ok(b) | a @ Err(b) => {}
|
|
|
|
| ^^^^^^^^^ binds an already bound by-move value by moving it
|
|
|
|
|
|
|
|
error[E0007]: cannot bind by-move with sub-bindings
|
2019-12-14 17:50:44 -06:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:25:21
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | a @ Ok(b) | a @ Err(b) => {}
|
|
|
|
| ^^^^^^^^^^ binds an already bound by-move value by moving it
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2019-12-14 17:50:44 -06:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:12:13
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | let a @ b = U;
|
|
|
|
| ----^ - move occurs because value has type `main::U`, which does not implement the `Copy` trait
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2019-12-14 17:50:44 -06:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:16:17
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (b, c) = (U, U);
|
|
|
|
| --------^- ------ move occurs because value has type `(main::U, main::U)`, which does not implement the `Copy` trait
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2019-12-14 17:50:44 -06:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:20:17
|
|
|
|
|
|
|
|
|
LL | let a @ (b, c) = (u(), u());
|
|
|
|
| --------^- ---------- move occurs because value has type `(main::U, main::U)`, which does not implement the `Copy` trait
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
|
|
|
--> $DIR/borrowck-move-and-move.rs:25:16
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | match Ok(U) {
|
|
|
|
| ----- move occurs because value has type `std::result::Result<main::U, main::U>`, which does not implement the `Copy` trait
|
|
|
|
LL | a @ Ok(b) | a @ Err(b) => {}
|
|
|
|
| -------^-
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2019-12-14 17:50:44 -06:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:25:29
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | match Ok(U) {
|
|
|
|
| ----- move occurs because value has type `std::result::Result<main::U, main::U>`, which does not implement the `Copy` trait
|
|
|
|
LL | a @ Ok(b) | a @ Err(b) => {}
|
|
|
|
| --------^-
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
2019-12-14 17:50:44 -06:00
|
|
|
error: aborting due to 10 previous errors
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
Some errors have detailed explanations: E0007, E0382.
|
|
|
|
For more information about an error, try `rustc --explain E0007`.
|