2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:28:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ ref b = U;
|
|
|
|
| -^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:30:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (U, U);
|
|
|
|
| -^^^^^^^^^^^^---------^^^^^^-----^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `(U, U)` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:30:14
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (U, U);
|
|
|
|
| -----^^^---------
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `b` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `b` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:30:33
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (U, U);
|
|
|
|
| -^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `d` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `d` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:37:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ [ref mut b, ref c] = [U, U];
|
|
|
|
| -^^^^---------^^-----^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `[U; 2]` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:40:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ ref b = u();
|
|
|
|
| -^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:43:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (u(), u());
|
|
|
|
| -^^^^^^^^^^^^---------^^^^^^-----^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `(U, U)` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:43:14
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (u(), u());
|
|
|
|
| -----^^^---------
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `b` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `b` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:43:33
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (u(), u());
|
|
|
|
| -^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `d` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `d` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:50:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ [ref mut b, ref c] = [u(), u()];
|
|
|
|
| -^^^^---------^^-----^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `[U; 2]` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:55:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some(ref b) => {}
|
|
|
|
| -^^^^^^^^-----^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `Option<U>` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:60:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| -^^^^^^^^^^^^^^^^^---------^^^^^^-----^^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `Option<(U, U)>` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:60:19
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| -----^^^---------
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `b` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `b` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:60:38
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| -^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `d` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `d` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:70:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | mut a @ Some([ref b, ref mut c]) => {}
|
|
|
|
| -----^^^^^^^^^-----^^---------^^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `Option<[U; 2]>` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:76:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some(ref b) => {}
|
|
|
|
| -^^^^^^^^-----^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `Option<U>` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:82:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| -^^^^^^^^^^^^^^^^^---------^^^^^^-----^^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `Option<(U, U)>` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:82:19
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| -----^^^---------
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `b` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `b` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:82:38
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| -^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `d` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `d` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:92:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | mut a @ Some([ref b, ref mut c]) => {}
|
|
|
|
| -----^^^^^^^^^-----^^---------^^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `Option<[U; 2]>` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:13:11
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f1(a @ ref b: U) {}
|
|
|
|
| -^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:17:11
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
|
|
|
|
| -----^^^^^^^^-----^^^^^^^^^^-----^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `(U, U)` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:17:20
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
|
|
|
|
| -^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `b` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `b` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:17:31
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
|
|
|
|
| -----^^^-----
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `d` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `d` has type `U` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:24:11
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f3(a @ [ref mut b, ref c]: [U; 2]) {}
|
|
|
|
| -^^^^---------^^-----^
|
|
|
|
| | | |
|
|
|
|
| | | value borrowed here after move
|
|
|
|
| | value borrowed here after move
|
2020-02-02 10:58:15 -06:00
|
|
|
| value moved into `a` here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `a` has type `[U; 2]` which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:30:22
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (U, U);
|
|
|
|
| --------^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:30:33
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (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
|
2020-01-18 19:47:01 -06:00
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:30:37
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (U, U);
|
|
|
|
| ----^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:37:25
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ [ref mut b, ref c] = [U, U];
|
2020-09-02 02:40:56 -05:00
|
|
|
| ----------------^^^^^- ------ move occurs because value has type `[U; 2]`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:40:13
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ ref b = u();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ----^^^^^ --- move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:43:22
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (u(), u());
|
|
|
|
| --------^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:43:33
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (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
|
2020-01-18 19:47:01 -06:00
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:43:37
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ (mut b @ ref mut c, d @ ref e) = (u(), u());
|
|
|
|
| ----^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:50:25
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let a @ [ref mut b, ref c] = [u(), u()];
|
2020-09-02 02:40:56 -05:00
|
|
|
| ----------------^^^^^- ---------- move occurs because value has type `[U; 2]`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:60:27
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| --------^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-06-20 00:45:09 -05:00
|
|
|
help: borrow this field in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | a @ Some((ref mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| ^^^
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:60:38
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | match Some((U, U)) {
|
2020-09-02 02:40:56 -05:00
|
|
|
| ------------ move occurs because value has type `Option<(U, U)>`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| -----------------------------^^^^^^^^^--
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:60:42
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| ----^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-06-20 00:45:09 -05:00
|
|
|
help: borrow this field in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, ref d @ ref e)) => {}
|
|
|
|
| ^^^
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:70:30
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | match Some([U, U]) {
|
2020-09-02 02:40:56 -05:00
|
|
|
| ------------ move occurs because value has type `Option<[U; 2]>`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
LL | mut a @ Some([ref b, ref mut c]) => {}
|
|
|
|
| ---------------------^^^^^^^^^--
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:76:18
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | match Some(u()) {
|
2020-09-02 02:40:56 -05:00
|
|
|
| --------- move occurs because value has type `Option<U>`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
LL | a @ Some(ref b) => {}
|
|
|
|
| ---------^^^^^-
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:82:27
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| --------^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-06-20 00:45:09 -05:00
|
|
|
help: borrow this field in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | a @ Some((ref mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| ^^^
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:82:38
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | match Some((u(), u())) {
|
2020-09-02 02:40:56 -05:00
|
|
|
| ---------------- move occurs because value has type `Option<(U, U)>`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| -----------------------------^^^^^^^^^--
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:82:42
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
|
|
|
|
| ----^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-06-20 00:45:09 -05:00
|
|
|
help: borrow this field in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | a @ Some((mut b @ ref mut c, ref d @ ref e)) => {}
|
|
|
|
| ^^^
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:92:30
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | match Some([u(), u()]) {
|
2020-09-02 02:40:56 -05:00
|
|
|
| ---------------- move occurs because value has type `Option<[U; 2]>`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
LL | mut a @ Some([ref b, ref mut c]) => {}
|
|
|
|
| ---------------------^^^^^^^^^--
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:13:15
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f1(a @ ref b: U) {}
|
|
|
|
| ----^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed 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
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:17:24
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
|
|
|
|
| ----^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: use of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:17:31
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
|
|
|
|
| --------------------^^^^^^^^^^^^^-
|
|
|
|
| | |
|
|
|
|
| | value used here after move
|
|
|
|
| value moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because value has type `(U, U)`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:17:39
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
|
|
|
|
| --------^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `U`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:24:27
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f3(a @ [ref mut b, ref c]: [U; 2]) {}
|
|
|
|
| ----------------^^^^^-
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because value has type `[U; 2]`, which does not implement the `Copy` trait
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error: aborting due to 48 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|