summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/variances-of-gat.rs
blob: 0d19e1ff416130bd8467563eb8d5a9b3ae869aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// check-pass

#![feature(return_position_impl_trait_in_trait)]

trait Foo {}

impl Foo for () {}

trait ThreeCellFragment {
    fn ext_cells<'a>(&'a self) -> impl Foo + 'a {
        self.ext_adjacent_cells()
    }

    fn ext_adjacent_cells<'a>(&'a self) -> impl Foo + 'a;
}

fn main() {}