Files
rust/tests/ui/nll
Jonathan Brouwer 386fb4e82a Rollup merge of #159816 - ssenthilnathan3:e0502-loop-mutate, r=camelid
added note/help about iterator invalidation when mutating a collection inside a for loop

closes: rust-lang/rust#159489

when the borrow checker detects a mutable borrow of a collection that is also immutably borrowed by a for loop,

this emits a note explaining that the for loop holds the borrow for its entire iteration, and a help
message suggesting alternatives like index-based loops.
2026-08-08 00:38:27 +02:00
..
2026-03-28 16:18:11 +09:00
…