rust/tests/ui/nll/match-cfg-fake-edges2.stderr

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

16 lines
451 B
Plaintext
Raw Normal View History

error[E0503]: cannot use `y.1` because it was mutably borrowed
2022-04-01 17:13:25 +00:00
--> $DIR/match-cfg-fake-edges2.rs:8:5
|
LL | let r = &mut y.1;
2023-01-15 03:06:44 +00:00
| -------- `y.1` is borrowed here
...
LL | match y {
| ^^^^^^^ use of borrowed `y.1`
...
2024-03-10 13:15:03 +00:00
LL | (true, _) => drop(r),
| - borrow later used here
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0503`.