]> git.proxmox.com Git - rustc.git/blob - tests/ui/associated-type-bounds/supertrait-referencing-self.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / associated-type-bounds / supertrait-referencing-self.rs
1 // check-pass
2 trait Foo {
3 type Bar;
4 }
5 trait Qux: Foo + AsRef<Self::Bar> {}
6 trait Foo2 {}
7
8 trait Qux2: Foo2 + AsRef<Self::Bar> {
9 type Bar;
10 }
11
12 fn main() {}