summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-17904.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/issues/issue-17904.rs')
-rw-r--r--src/test/ui/parser/issues/issue-17904.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/parser/issues/issue-17904.rs b/src/test/ui/parser/issues/issue-17904.rs
new file mode 100644
index 000000000..7d6a54f4b
--- /dev/null
+++ b/src/test/ui/parser/issues/issue-17904.rs
@@ -0,0 +1,6 @@
+struct Baz<U> where U: Eq(U); //This is parsed as the new Fn* style parenthesis syntax.
+struct Baz<U> where U: Eq(U) -> R; // Notice this parses as well.
+struct Baz<U>(U) where U: Eq; // This rightfully signals no error as well.
+struct Foo<T> where T: Copy, (T); //~ ERROR expected one of `:`, `==`, or `=`, found `;`
+
+fn main() {}