summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-17904.rs
blob: 7d6a54f4be12e82df1c2eb2afe374484415a9de1 (plain)
1
2
3
4
5
6
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() {}