Allow to use super trait bounds in where clauses

This commit is contained in:
Santiago Pastorino 2020-11-03 17:07:18 -03:00
parent 361543d776
commit 24dcf6f7a2
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
6 changed files with 167 additions and 23 deletions

View file

@ -0,0 +1,15 @@
// check-pass
trait Foo {
type Item;
}
trait Bar<T> {}
fn baz<T>()
where
T: Foo,
T: Bar<T::Item>,
{
}
fn main() {}