rust/tests/ui/associated-types/issue-39532.rs
2024-02-16 20:02:50 +00:00

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() {}