rust/tests/ui/nll/borrowed-match-issue-45045.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
437 B
Plaintext
Raw Normal View History

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