| warning: lifetime flowing from input to output with different syntax can be confusing |
| --> $DIR/rpit-assoc-pair-with-lifetime.rs:3:31 |
| | |
| LL | pub fn iter<'a>(v: Vec<(u32, &'a u32)>) -> impl DoubleEndedIterator<Item = (u32, &u32)> { |
| | ^^ this lifetime flows to the output ---- the lifetime gets resolved as `'a` |
| | |
| = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default |
| help: one option is to consistently use `'a` |
| | |
| LL | pub fn iter<'a>(v: Vec<(u32, &'a u32)>) -> impl DoubleEndedIterator<Item = (u32, &'a u32)> { |
| | ++ |
| |
| warning: 1 warning emitted |
| |