mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
15 lines
160 B
Rust
15 lines
160 B
Rust
//@ check-pass
|
|
|
|
#![allow(unused)]
|
|
|
|
trait Foo {
|
|
type Bar;
|
|
type Baz: Bar<Self::Bar>;
|
|
}
|
|
|
|
trait Bar<T> {}
|
|
|
|
fn x<T: Foo<Bar = U>, U>(t: &T) {}
|
|
|
|
fn main() {}
|