diff options
| author | Alexander Regueiro <alexreg@me.com> | 2019-08-05 15:16:15 +0100 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2019-08-05 16:07:26 +0100 |
| commit | 0994cf4ab09fd22057308fe43fa2f6be25d74c36 (patch) | |
| tree | d1848ae371b3abab4ad7e509fb9c6a0446f78c56 | |
| parent | 4e0e645dd964920e2a7ea5831ab90dd75c2676ff (diff) | |
| download | rust-0994cf4ab09fd22057308fe43fa2f6be25d74c36.tar.gz rust-0994cf4ab09fd22057308fe43fa2f6be25d74c36.zip | |
Added another test.
| -rw-r--r-- | src/test/ui/associated-type-bounds/ambiguous-associated-type.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/associated-type-bounds/ambiguous-associated-type.rs b/src/test/ui/associated-type-bounds/ambiguous-associated-type.rs new file mode 100644 index 00000000000..364ead00c55 --- /dev/null +++ b/src/test/ui/associated-type-bounds/ambiguous-associated-type.rs @@ -0,0 +1,12 @@ +// build-pass (FIXME(62277): could be check-pass?) + +#![feature(associated_type_bounds)] + +pub struct Flatten<I> +where + I: Iterator<Item: IntoIterator>, +{ + inner: <I::Item as IntoIterator>::IntoIter, +} + +fn main() {} |
