about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-17904.rs
blob: 99a3b13989885ca7b9f96a482b1449e8f284e237 (plain)
1
2
3
4
5
6
7
8
//@ compile-flags: -Zparse-crate-root-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() {}