2015-01-04 02:35:14 -08: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.
|
2017-03-17 00:47:32 +03:00
|
|
|
struct Foo<T> where T: Copy, (T); //~ ERROR expected one of `:`, `==`, or `=`, found `;`
|
2015-01-04 02:35:14 -08:00
|
|
|
|
|
|
|
|
fn main() {}
|