diff options
Diffstat (limited to 'tests/ui/associated-type-bounds/ambiguous-associated-type.rs')
-rw-r--r-- | tests/ui/associated-type-bounds/ambiguous-associated-type.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/associated-type-bounds/ambiguous-associated-type.rs b/tests/ui/associated-type-bounds/ambiguous-associated-type.rs new file mode 100644 index 000000000..9c47a003d --- /dev/null +++ b/tests/ui/associated-type-bounds/ambiguous-associated-type.rs @@ -0,0 +1,12 @@ +// check-pass + +#![feature(associated_type_bounds)] + +pub struct Flatten<I> +where + I: Iterator<Item: IntoIterator>, +{ + inner: <I::Item as IntoIterator>::IntoIter, +} + +fn main() {} |