blob: f9c9a84632212376d32108a57c1043bb134ec80c [file] [log] [blame]
error[E0503]: cannot use `e` because it was mutably borrowed
--> $DIR/match-on-borrowed.rs:49:9
|
LL | E::V(ref mut x, _) => x,
| --------- borrow of `e.0` occurs here
...
LL | E::V(_, r) => (),
| ^^^^^^^^^^ use of borrowed `e.0`
...
LL | x;
| - borrow later used here
error[E0503]: cannot use `*f` because it was mutably borrowed
--> $DIR/match-on-borrowed.rs:62:9
|
LL | E::V(ref mut x, _) => x,
| --------- borrow of `f.0` occurs here
...
LL | E::V(_, r) => (),
| ^^^^^^^^^^ use of borrowed `f.0`
...
LL | x;
| - borrow later used here
error[E0503]: cannot use `t` because it was mutably borrowed
--> $DIR/match-on-borrowed.rs:80:9
|
LL | let x = &mut t;
| ------ borrow of `t` occurs here
LL | match t {
LL | true => (),
| ^^^^ use of borrowed `t`
...
LL | x;
| - borrow later used here
error[E0381]: use of possibly-uninitialized variable: `n`
--> $DIR/match-on-borrowed.rs:90:11
|
LL | match n {}
| ^ use of possibly-uninitialized `n`
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0381, E0503.
For more information about an error, try `rustc --explain E0381`.