diff options
Diffstat (limited to 'tests/ui/parser/where_with_bound.rs')
-rw-r--r-- | tests/ui/parser/where_with_bound.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/parser/where_with_bound.rs b/tests/ui/parser/where_with_bound.rs new file mode 100644 index 000000000..3ca45f188 --- /dev/null +++ b/tests/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() {} |