summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.rs
blob: 43058f7eb41bfb7930edf1549227083722fb78d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(generic_associated_types)]

use std::ops::Deref;

trait Iterable {
    type Item<'a>;
    type Iter<'a>: Iterator<Item = Self::Item<'a>>
        + Deref<Target = Self::Item<'b>>;
    //~^ ERROR undeclared lifetime

    fn iter<'a>(&'a self) -> Self::Iter<'undeclared>;
    //~^ ERROR undeclared lifetime
}

fn main() {}