rust/tests/ui/nll/issue-46589.nll.stderr
Rémy Rakic b99fe2b720 mark polonius=next's NLL imprecisions as known-bugs
- linked-list cursor-like patterns
- issue-46589

These are known-bugs for the polonius alpha, where they show the same
imprecision as NLLs, but are supported by the old datalog
implementation.
2025-08-08 15:15:09 +00:00

16 lines
591 B
Plaintext

error[E0499]: cannot borrow `**other` as mutable more than once at a time
--> $DIR/issue-46589.rs:25:21
|
LL | *other = match (*other).get_self() {
| -------- first mutable borrow occurs here
LL | Some(s) => s,
LL | None => (*other).new_self()
| ^^^^^^^^
| |
| second mutable borrow occurs here
| first borrow later used here
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0499`.