blob: 6f77d4bb086fb21f97a9667353b34a33b9d6e680 [file] [log] [blame] [edit]
//@ 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() {}