mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
21 lines
285 B
Rust
21 lines
285 B
Rust
//@ check-pass
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
trait I { fn i(&self) -> Self; }
|
|
|
|
trait A<T:I> {
|
|
fn id(x:T) -> T { x.i() }
|
|
}
|
|
|
|
trait J<T> { fn j(&self) -> T; }
|
|
|
|
trait B<T:J<T>> {
|
|
fn id(x:T) -> T { x.j() }
|
|
}
|
|
|
|
trait C {
|
|
fn id<T:J<T>>(x:T) -> T { x.j() }
|
|
}
|
|
|
|
pub fn main() { }
|