2019-11-11 04:39:52 -06:00
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:13:13
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | let a @ b = U;
|
2020-09-02 02:40:56 -05:00
|
|
|
| ----^ - move occurs because value has type `U`, which does not implement the `Copy` trait
|
2019-11-11 04:39:52 -06:00
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:15:17
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (b, c) = (U, U);
|
2020-09-02 02:40:56 -05:00
|
|
|
| --------^- ------ move occurs because value has type `(U, U)`, which does not implement the `Copy` trait
|
2019-11-11 04:39:52 -06:00
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:17:17
|
2019-12-14 17:50:44 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (b, c) = (u(), u());
|
2020-09-02 02:40:56 -05:00
|
|
|
| --------^- ---------- move occurs because value has type `(U, U)`, which does not implement the `Copy` trait
|
2019-12-14 17:50:44 -06:00
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:20:16
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | match Ok(U) {
|
2020-09-02 02:40:56 -05:00
|
|
|
| ----- move occurs because value has type `std::result::Result<U, U>`, which does not implement the `Copy` trait
|
2019-11-11 04:39:52 -06:00
|
|
|
LL | a @ Ok(b) | a @ Err(b) => {}
|
|
|
|
| -------^-
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:20:29
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | match Ok(U) {
|
2020-09-02 02:40:56 -05:00
|
|
|
| ----- move occurs because value has type `std::result::Result<U, U>`, which does not implement the `Copy` trait
|
2019-11-11 04:39:52 -06:00
|
|
|
LL | a @ Ok(b) | a @ Err(b) => {}
|
|
|
|
| --------^-
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
2019-12-14 20:50:55 -06:00
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:27:22
|
2019-12-14 20:50:55 -06:00
|
|
|
|
|
|
|
|
LL | match [u(), u(), u(), u()] {
|
2020-09-02 02:40:56 -05:00
|
|
|
| -------------------- move occurs because value has type `[U; 4]`, which does not implement the `Copy` trait
|
2019-12-14 20:50:55 -06:00
|
|
|
LL | xs @ [a, .., b] => {}
|
|
|
|
| -------------^-
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:31:18
|
2019-12-14 20:50:55 -06:00
|
|
|
|
|
|
|
|
LL | match [u(), u(), u(), u()] {
|
2020-09-02 02:40:56 -05:00
|
|
|
| -------------------- move occurs because value has type `[U; 4]`, which does not implement the `Copy` trait
|
2019-12-14 20:50:55 -06:00
|
|
|
LL | xs @ [_, ys @ .., _] => {}
|
|
|
|
| ---------^^^^^^^----
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-move-and-move.rs:24:16
|
2019-12-14 20:50:55 -06:00
|
|
|
|
|
|
|
|
LL | fn fun(a @ b: U) {}
|
|
|
|
| ----^
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because value has type `U`, which does not implement the `Copy` trait
|
2019-12-14 20:50:55 -06:00
|
|
|
|
2020-01-18 19:47:01 -06:00
|
|
|
error: aborting due to 8 previous errors
|
2019-11-11 04:39:52 -06:00
|
|
|
|
2020-01-18 19:47:01 -06:00
|
|
|
For more information about this error, try `rustc --explain E0382`.
|