about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/variances-of-gat.rs
blob: 39a647580ef90db42c6c4882874e2ee933631c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass


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() {}