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