Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
Why does returning `impl Iterator<Item = &T> + '_` from `fn iter(&self)` need the `'_`?
A
It's required for all iterators
B
It states that the returned iterator borrows from self and can't outlive it (required before the 2024 edition's capture rules)
C
It disables borrow checking
D
It makes the iterator 'static