mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
17 lines
242 B
Rust
17 lines
242 B
Rust
//@ 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() {}
|