mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-04 14:07:36 +00:00
16 lines
198 B
Rust
16 lines
198 B
Rust
![]() |
//@ check-pass
|
||
|
|
||
|
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() {}
|