]>
Commit | Line | Data |
---|---|---|
2c00a5a8 | 1 | error[E0503]: cannot use `e` because it was mutably borrowed |
94222f64 | 2 | --> $DIR/borrowed-match-issue-45045.rs:12:11 |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | let f = &mut e; |
2c00a5a8 | 5 | | ------ borrow of `e` occurs here |
94222f64 XL |
6 | LL | let g = f; |
7 | LL | match e { | |
8 | | ^ use of borrowed `e` | |
0531ce1d XL |
9 | ... |
10 | LL | *g = Xyz::B; | |
11 | | ----------- borrow later used here | |
2c00a5a8 | 12 | |
0bf4aa26 | 13 | error: aborting due to previous error |
2c00a5a8 | 14 | |
0531ce1d | 15 | For more information about this error, try `rustc --explain E0503`. |