2018-12-13 14:53:07 -06:00
|
|
|
error[E0503]: cannot use `e` because it was mutably borrowed
|
2019-09-06 09:23:00 -05:00
|
|
|
--> $DIR/match-on-borrowed.rs:49:9
|
2018-12-13 14:53:07 -06:00
|
|
|
|
|
|
|
|
LL | E::V(ref mut x, _) => x,
|
|
|
|
| --------- borrow of `e.0` occurs here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | E::V(_, r) => (),
|
2018-12-13 14:53:07 -06:00
|
|
|
| ^^^^^^^^^^ use of borrowed `e.0`
|
|
|
|
...
|
|
|
|
LL | x;
|
|
|
|
| - borrow later used here
|
|
|
|
|
|
|
|
error[E0503]: cannot use `*f` because it was mutably borrowed
|
2019-09-06 09:23:00 -05:00
|
|
|
--> $DIR/match-on-borrowed.rs:62:9
|
2018-12-13 14:53:07 -06:00
|
|
|
|
|
|
|
|
LL | E::V(ref mut x, _) => x,
|
|
|
|
| --------- borrow of `f.0` occurs here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | E::V(_, r) => (),
|
2018-12-13 14:53:07 -06:00
|
|
|
| ^^^^^^^^^^ use of borrowed `f.0`
|
|
|
|
...
|
|
|
|
LL | x;
|
|
|
|
| - borrow later used here
|
|
|
|
|
2018-09-13 16:04:00 -05:00
|
|
|
error[E0503]: cannot use `t` because it was mutably borrowed
|
2019-09-06 09:23:00 -05:00
|
|
|
--> $DIR/match-on-borrowed.rs:80:9
|
2018-09-13 16:04:00 -05:00
|
|
|
|
|
|
|
|
LL | let x = &mut t;
|
|
|
|
| ------ borrow of `t` occurs here
|
|
|
|
LL | match t {
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | true => (),
|
2018-09-13 16:04:00 -05:00
|
|
|
| ^^^^ use of borrowed `t`
|
|
|
|
...
|
|
|
|
LL | x;
|
|
|
|
| - borrow later used here
|
|
|
|
|
2019-09-01 12:09:59 -05:00
|
|
|
error[E0381]: use of possibly-uninitialized variable: `n`
|
2019-09-06 09:23:00 -05:00
|
|
|
--> $DIR/match-on-borrowed.rs:90:11
|
2018-09-13 16:04:00 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | match n {}
|
2019-09-01 12:09:59 -05:00
|
|
|
| ^ use of possibly-uninitialized `n`
|
2018-09-13 16:04:00 -05:00
|
|
|
|
2018-12-13 14:53:07 -06:00
|
|
|
error: aborting due to 4 previous errors
|
2018-09-13 16:04:00 -05:00
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0381, E0503.
|
2018-09-13 16:04:00 -05:00
|
|
|
For more information about an error, try `rustc --explain E0381`.
|