1 error[E0503]: cannot use `foo` because it was mutably borrowed
2 --> $DIR/borrowck-match-already-borrowed.rs:10:9
5 | -------- borrow of `foo` occurs here
6 LL | let _ = match foo {
8 | ^^^^^^ use of borrowed `foo`
11 | - borrow later used here
13 error[E0503]: cannot use `foo.0` because it was mutably borrowed
14 --> $DIR/borrowck-match-already-borrowed.rs:12:16
16 LL | let p = &mut foo;
17 | -------- borrow of `foo` occurs here
20 | ^ use of borrowed `foo`
23 | - borrow later used here
25 error[E0503]: cannot use `x` because it was mutably borrowed
26 --> $DIR/borrowck-match-already-borrowed.rs:22:9
29 | ------ borrow of `x` occurs here
30 LL | let _ = match x {
32 | ^ use of borrowed `x`
35 | - borrow later used here
37 error[E0503]: cannot use `x` because it was mutably borrowed
38 --> $DIR/borrowck-match-already-borrowed.rs:23:9
41 | ------ borrow of `x` occurs here
44 | ^ use of borrowed `x`
47 | - borrow later used here
49 error: aborting due to 4 previous errors
51 For more information about this error, try `rustc --explain E0503`.