summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/missing-lt-outlives-in-rpitit-114274.rs
blob: abc845d3afa39cafab1ed93754de1884c7121630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(return_position_impl_trait_in_trait)]

trait Iterable {
    type Item<'a>
    where
        Self: 'a;

    fn iter(&self) -> impl Iterator<Item = Self::Item<'missing>>;
    //~^ ERROR use of undeclared lifetime name `'missing`
}

fn main() {}