mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00

- 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.
13 lines
572 B
Plaintext
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`.
|