18 lines
229 B
Rust
18 lines
229 B
Rust
// check-pass
|
|
|
|
#![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() {}
|