summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.rs
blob: 2cb218bf8f251edd145e2883f87e5efe4cd2e34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {}