Allow to self reference associated types in where clauses
This commit is contained in:
parent
24dcf6f7a2
commit
2ca4964db5
8 changed files with 205 additions and 64 deletions
|
|
@ -0,0 +1,12 @@
|
|||
// check-pass
|
||||
trait Foo {
|
||||
type Bar;
|
||||
}
|
||||
trait Qux: Foo + AsRef<Self::Bar> {}
|
||||
trait Foo2 {}
|
||||
|
||||
trait Qux2: Foo2 + AsRef<Self::Bar> {
|
||||
type Bar;
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue