mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
24 lines
329 B
Rust
24 lines
329 B
Rust
// run-pass
|
|
#![allow(unused_variables)]
|
|
// pretty-expanded FIXME #23616
|
|
|
|
trait Foo<T> { fn dummy(&self, arg: T) { } }
|
|
|
|
trait Bar<A> {
|
|
fn method<B>(&self) where A: Foo<B>;
|
|
}
|
|
|
|
struct S;
|
|
struct X;
|
|
|
|
impl Foo<S> for X {}
|
|
|
|
impl Bar<X> for i32 {
|
|
fn method<U>(&self) where X: Foo<U> {
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
1.method::<S>();
|
|
}
|