diff options
Diffstat (limited to 'src/test/ui/associated-type-bounds/associated-item-through-where-clause.rs')
-rw-r--r-- | src/test/ui/associated-type-bounds/associated-item-through-where-clause.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/associated-type-bounds/associated-item-through-where-clause.rs b/src/test/ui/associated-type-bounds/associated-item-through-where-clause.rs new file mode 100644 index 000000000..3eb50ab55 --- /dev/null +++ b/src/test/ui/associated-type-bounds/associated-item-through-where-clause.rs @@ -0,0 +1,21 @@ +// check-pass + +trait Foo { + type Item; +} + +trait Bar +where + Self: Foo, +{ +} + +#[allow(dead_code)] +fn foo<M>(_m: M) +where + M: Bar, + M::Item: Send, +{ +} + +fn main() {} |