about summary refs log tree commit diff
path: root/tests/ui/impl-trait/rpit-assoc-pair-with-lifetime.rs
blob: 1b8a5d4ca99bf1fe2d4056f90a31c09db4cc9524 (plain)
1
2
3
4
5
6
7
8
//@ check-pass

pub fn iter<'a>(v: Vec<(u32, &'a u32)>) -> impl DoubleEndedIterator<Item = (u32, &u32)> {
    //~^ WARNING eliding a lifetime that's named elsewhere is confusing
    v.into_iter()
}

fn main() {}