mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
19 lines
278 B
Rust
19 lines
278 B
Rust
// check-pass
|
|
|
|
#![feature(return_position_impl_trait_in_trait)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Foo<T> {
|
|
fn foo<F2: Foo<T>>(self) -> impl Foo<T>;
|
|
}
|
|
|
|
struct Bar;
|
|
|
|
impl Foo<u8> for Bar {
|
|
fn foo<F2: Foo<u8>>(self) -> impl Foo<u8> {
|
|
self
|
|
}
|
|
}
|
|
|
|
fn main() {}
|