rust/tests/ui/nll/polonius/iterating-updating-cursor-issue-108704.polonius.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

13 lines
572 B
Plaintext

error[E0499]: cannot borrow `*elements` as mutable more than once at a time
--> $DIR/iterating-updating-cursor-issue-108704.rs:41:26
|
LL | for (idx, el) in elements.iter_mut().enumerate() {
| ^^^^^^^^
| |
| `*elements` was mutably borrowed here in the previous iteration of the loop
| first borrow used here, in later iteration of loop
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0499`.