Allow to use super trait bounds in where clauses
This commit is contained in:
parent
361543d776
commit
24dcf6f7a2
6 changed files with 167 additions and 23 deletions
|
|
@ -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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue