mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
18 lines
290 B
Rust
18 lines
290 B
Rust
// 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() {}
|