summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-17904.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-17904.rs')
-rw-r--r--tests/ui/parser/issues/issue-17904.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-17904.rs b/tests/ui/parser/issues/issue-17904.rs
new file mode 100644
index 000000000..020fb41c2
--- /dev/null
+++ b/tests/ui/parser/issues/issue-17904.rs
@@ -0,0 +1,8 @@
+// compile-flags: -Zparse-only
+
+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 where clauses are not allowed before tuple struct bodies
+
+fn main() {}