1 error[E0503]: cannot use `e` because it was mutably borrowed
2 --> $DIR/match-on-borrowed.rs:51:9
4 LL | E::V(ref mut x, _) => x,
5 | --------- borrow of `e.0` occurs here
7 LL | E::V(_, r) => (), //~ ERROR
8 | ^^^^^^^^^^ use of borrowed `e.0`
11 | - borrow later used here
13 error[E0503]: cannot use `*f` because it was mutably borrowed
14 --> $DIR/match-on-borrowed.rs:64:9
16 LL | E::V(ref mut x, _) => x,
17 | --------- borrow of `f.0` occurs here
19 LL | E::V(_, r) => (), //~ ERROR
20 | ^^^^^^^^^^ use of borrowed `f.0`
23 | - borrow later used here
25 error[E0503]: cannot use `t` because it was mutably borrowed
26 --> $DIR/match-on-borrowed.rs:82:9
29 | ------ borrow of `t` occurs here
31 LL | true => (), //~ ERROR
32 | ^^^^ use of borrowed `t`
35 | - borrow later used here
37 error[E0381]: use of possibly uninitialized variable: `n`
38 --> $DIR/match-on-borrowed.rs:92:11
40 LL | match n {} //~ ERROR
41 | ^ use of possibly uninitialized `n`
43 error: aborting due to 4 previous errors
45 Some errors occurred: E0381, E0503.
46 For more information about an error, try `rustc --explain E0381`.