2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:22:9
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
2020-01-18 19:47:01 -06:00
|
|
|
LL | let ref a @ b = U;
|
|
|
|
| -----^^^-
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2019-11-11 04:39:52 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:24:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref a @ (ref b @ mut c, ref d @ e) = (U, U);
|
|
|
|
| -----^^^^^^^^^^^^-----^^^^^^^^^^-^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `e` here
|
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:24:18
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref a @ (ref b @ mut c, ref d @ e) = (U, U);
|
|
|
|
| -----^^^-----
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `b`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:24:33
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref a @ (ref b @ mut c, ref d @ e) = (U, U);
|
|
|
|
| -----^^^-
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `e` here
|
|
|
|
| value borrowed, by `d`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:28:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref mut a @ [b, mut c] = [U, U];
|
|
|
|
| ---------^^^^-^^-----^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `c` here
|
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:30:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref a @ b = u();
|
|
|
|
| -----^^^-
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:32:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref a @ (ref b @ mut c, ref d @ e) = (u(), u());
|
|
|
|
| -----^^^^^^^^^^^^-----^^^^^^^^^^-^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `e` here
|
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:32:18
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref a @ (ref b @ mut c, ref d @ e) = (u(), u());
|
|
|
|
| -----^^^-----
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `b`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:32:33
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref a @ (ref b @ mut c, ref d @ e) = (u(), u());
|
|
|
|
| -----^^^-
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `e` here
|
|
|
|
| value borrowed, by `d`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:36:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | let ref mut a @ [b, mut c] = [u(), u()];
|
|
|
|
| ---------^^^^-^^-----^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `c` here
|
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:40:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref a @ Some(b) => {}
|
|
|
|
| -----^^^^^^^^-^
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:45:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref a @ Some((ref b @ mut c, ref d @ e)) => {}
|
|
|
|
| -----^^^^^^^^^^^^^^^^^-----^^^^^^^^^^-^^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `e` here
|
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:45:23
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref a @ Some((ref b @ mut c, ref d @ e)) => {}
|
|
|
|
| -----^^^-----
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `b`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:45:38
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref a @ Some((ref b @ mut c, ref d @ e)) => {}
|
|
|
|
| -----^^^-
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `e` here
|
|
|
|
| value borrowed, by `d`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:52:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref mut a @ Some([b, mut c]) => {}
|
|
|
|
| ---------^^^^^^^^^-^^-----^^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `c` here
|
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:57:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref a @ Some(b) => {}
|
|
|
|
| -----^^^^^^^^-^
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:62:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref a @ Some((ref b @ mut c, ref d @ e)) => {}
|
|
|
|
| -----^^^^^^^^^^^^^^^^^-----^^^^^^^^^^-^^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `e` here
|
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:62:23
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref a @ Some((ref b @ mut c, ref d @ e)) => {}
|
|
|
|
| -----^^^-----
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `b`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:62:38
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref a @ Some((ref b @ mut c, ref d @ e)) => {}
|
|
|
|
| -----^^^-
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `e` here
|
|
|
|
| value borrowed, by `d`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:69:9
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | ref mut a @ Some([b, mut c]) => {}
|
|
|
|
| ---------^^^^^^^^^-^^-----^^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `c` here
|
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:13:11
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f1(ref a @ b: U) {}
|
|
|
|
| -----^^^-
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:15:11
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(ref a @ (ref b @ mut c, ref d @ e): (U, U)) {}
|
|
|
|
| -----^^^^^^^^^^^^-----^^^^^^^^^^-^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `e` here
|
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:15:20
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(ref a @ (ref b @ mut c, ref d @ e): (U, U)) {}
|
|
|
|
| -----^^^-----
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `c` here
|
|
|
|
| value borrowed, by `b`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:15:35
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f2(ref a @ (ref b @ mut c, ref d @ e): (U, U)) {}
|
|
|
|
| -----^^^-
|
|
|
|
| | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | value moved into `e` here
|
|
|
|
| value borrowed, by `d`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
2020-02-02 10:58:15 -06:00
|
|
|
error: cannot move out of value because it is borrowed
|
2020-08-30 13:59:56 -05:00
|
|
|
--> $DIR/borrowck-pat-by-move-and-ref.rs:19:11
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
|
LL | fn f3(ref mut a @ [b, mut c]: [U; 2]) {}
|
|
|
|
| ---------^^^^-^^-----^
|
|
|
|
| | | |
|
2020-02-02 10:58:15 -06:00
|
|
|
| | | value moved into `c` here
|
|
|
|
| | value moved into `b` here
|
|
|
|
| value borrowed, by `a`, here
|
2020-01-18 19:47:01 -06:00
|
|
|
|
|
|
|
error: aborting due to 25 previous errors
|
2019-11-11 04:39:52 -06:00
|
|
|
|