1 error[E0503]: cannot use `foo` because it was mutably borrowed
2 --> $DIR/borrowck-match-already-borrowed.rs:9:19
5 | -------- borrow of `foo` occurs here
6 LL | let _ = match foo {
7 | ^^^ use of borrowed `foo`
10 | - borrow later used here
12 error[E0503]: cannot use `foo.0` because it was mutably borrowed
13 --> $DIR/borrowck-match-already-borrowed.rs:12:16
15 LL | let p = &mut foo;
16 | -------- borrow of `foo` occurs here
19 | ^ use of borrowed `foo`
22 | - borrow later used here
24 error[E0503]: cannot use `x` because it was mutably borrowed
25 --> $DIR/borrowck-match-already-borrowed.rs:22:9
28 | ------ borrow of `x` occurs here
29 LL | let _ = match x {
31 | ^ use of borrowed `x`
34 | - borrow later used here
36 error[E0503]: cannot use `x` because it was mutably borrowed
37 --> $DIR/borrowck-match-already-borrowed.rs:23:9
40 | ------ borrow of `x` occurs here
43 | ^ use of borrowed `x`
46 | - borrow later used here
48 error: aborting due to 4 previous errors
50 For more information about this error, try `rustc --explain E0503`.