rust/tests/ui/parser/issues/issue-17904.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
376 B
Rust
Raw Normal View History

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