mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
49f950434b
Detect when user is trying to create a lending `Iterator` and give a custom explanation The scope for this diagnostic is to detect lending iterators specifically and it's main goal is to help beginners to understand that what they are trying to implement might not be possible for `Iterator` trait specifically. I ended up to changing the wording from originally proposed in the ticket because it might be misleading otherwise: `Data` might have a lifetime parameter but it can be unrelated to items user is planning to return. Fixes https://github.com/rust-lang/rust/issues/125337 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |