summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/where_with_bound.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/where_with_bound.rs')
-rw-r--r--src/test/ui/parser/where_with_bound.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/parser/where_with_bound.rs b/src/test/ui/parser/where_with_bound.rs
new file mode 100644
index 000000000..3ca45f188
--- /dev/null
+++ b/src/test/ui/parser/where_with_bound.rs
@@ -0,0 +1,5 @@
+fn foo<T>() where <T>::Item: ToString, T: Iterator { }
+//~^ ERROR generic parameters on `where` clauses are reserved for future use
+//~| ERROR cannot find type `Item` in the crate root
+
+fn main() {}