2018-01-15 11:14:47 -05:00
|
|
|
error[E0503]: cannot use `e` because it was mutably borrowed
|
2021-07-23 18:55:36 -04:00
|
|
|
--> $DIR/borrowed-match-issue-45045.rs:12:11
|
2018-01-15 11:14:47 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let f = &mut e;
|
2018-01-15 11:14:47 -05:00
|
|
|
| ------ borrow of `e` occurs here
|
2021-07-23 18:55:36 -04:00
|
|
|
LL | let g = f;
|
|
|
|
LL | match e {
|
|
|
|
| ^ use of borrowed `e`
|
2018-03-05 19:29:05 -03:00
|
|
|
...
|
|
|
|
LL | *g = Xyz::B;
|
|
|
|
| ----------- borrow later used here
|
2018-01-15 11:14:47 -05:00
|
|
|
|
2018-09-13 22:04:09 +01:00
|
|
|
error: aborting due to previous error
|
2018-01-15 11:14:47 -05:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0503`.
|