2019-11-24 16:39:05 -06:00
|
|
|
error[E0503]: cannot use `x` because it was mutably borrowed
|
2021-07-23 17:55:36 -05:00
|
|
|
--> $DIR/borrowck-non-exhaustive.rs:12:11
|
2019-11-24 16:39:05 -06:00
|
|
|
|
|
|
|
|
LL | let y = &mut x;
|
2023-01-14 21:06:44 -06:00
|
|
|
| ------ `x` is borrowed here
|
2019-11-24 16:39:05 -06:00
|
|
|
LL | match x {
|
2021-07-23 17:55:36 -05:00
|
|
|
| ^ use of borrowed `x`
|
2019-11-24 16:39:05 -06:00
|
|
|
...
|
|
|
|
LL | drop(y);
|
|
|
|
| - borrow later used here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0503`.
|