]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-17904.rs
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020...
[rust.git] / src / test / ui / parser / issue-17904.rs
1 struct Baz<U> where U: Eq(U); //This is parsed as the new Fn* style parenthesis syntax.
2 struct Baz<U> where U: Eq(U) -> R; // Notice this parses as well.
3 struct Baz<U>(U) where U: Eq; // This rightfully signals no error as well.
4 struct Foo<T> where T: Copy, (T); //~ ERROR expected one of `:`, `==`, or `=`, found `;`
5
6 fn main() {}