mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
20 lines
252 B
Rust
20 lines
252 B
Rust
//@ check-pass
|
|
|
|
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() { }
|