2023-01-06 10:47:21 -06:00
|
|
|
// compile-flags: -Zparse-only
|
|
|
|
|
2015-01-04 04:35:14 -06:00
|
|
|
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.
|
2023-01-06 10:47:21 -06:00
|
|
|
struct Foo<T> where T: Copy, (T); //~ ERROR where clauses are not allowed before tuple struct bodies
|
2015-01-04 04:35:14 -06:00
|
|
|
|
|
|
|
fn main() {}
|