mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +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() {}
|