-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid syntax and crash on unit struct with where-clause #3194
Comments
With regards to the bad output, here's what I gathered. Because there is no parameter, the Then, comments before the @dtolnay just to better understand your example, I was wondering if it is normal that the struct |
It is intentional that there is no generic parameter. This is legal and useful Rust syntax. |
I was not aware! What is the use ? I'd appreciate any pointers ;o) |
For example: pub struct Error {
/* ... */
}
#[cfg(test)]
struct _Test where Error: Send + Sync; This is a test that proves the |
Against the current master branch, 4e2f741:
The output is not valid Rust syntax.
If the input is in two files, rustfmt crashes. I am hitting this in dtolnay/syn#536.
src/lib.rs
src/m.rs
The text was updated successfully, but these errors were encountered: