rust/src/test/ui/parser/issue-17904.rs
Esteban Küber d6ea6b972d fix tidy
2019-05-31 13:50:04 -07:00

6 lines
332 B
Rust

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 expected one of `:`, `==`, or `=`, found `;`
fn main() {}