about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Regueiro <alexreg@me.com>2019-08-05 15:16:15 +0100
committerAlexander Regueiro <alexreg@me.com>2019-08-05 16:07:26 +0100
commit0994cf4ab09fd22057308fe43fa2f6be25d74c36 (patch)
treed1848ae371b3abab4ad7e509fb9c6a0446f78c56
parent4e0e645dd964920e2a7ea5831ab90dd75c2676ff (diff)
downloadrust-0994cf4ab09fd22057308fe43fa2f6be25d74c36.tar.gz
rust-0994cf4ab09fd22057308fe43fa2f6be25d74c36.zip
Added another test.
-rw-r--r--src/test/ui/associated-type-bounds/ambiguous-associated-type.rs12
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() {}