rust/tests/ui/impl-trait/in-trait/variances-of-gat.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
241 B
Rust
Raw Normal View History

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