]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.rs
Rollup merge of #102954 - GuillaumeGomez:cfg-hide-attr-checks, r=Manishearth
[rust.git] / src / test / ui / generic-associated-types / generic_associated_type_undeclared_lifetimes.rs
1 use std::ops::Deref;
2
3 trait Iterable {
4     type Item<'a>;
5     type Iter<'a>: Iterator<Item = Self::Item<'a>>
6         + Deref<Target = Self::Item<'b>>;
7     //~^ ERROR undeclared lifetime
8
9     fn iter<'a>(&'a self) -> Self::Iter<'undeclared>;
10     //~^ ERROR undeclared lifetime
11 }
12
13 fn main() {}