
I was surprised to find that running with `-Zparse-only` only parses the crate root file. Other files aren't parsed because that happens later during expansion. This commit renames the option and updates the help message to make this clearer.
8 lines
388 B
Rust
8 lines
388 B
Rust
//@ compile-flags: -Zparse-crate-root-only
|
|
|
|
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
|
|
|
|
fn main() {}
|