-
Notifications
You must be signed in to change notification settings - Fork 911
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
dyn and :: should have a space between #3724
Comments
We need to use edition 2018 to use the |
This is with edition 2018. Please reopen? |
It seems that rustfmt (on playground) correctly adds spacing if edition is set to 2018. I guess https://github.com/rust-lang/rustfmt#rusts-editions fixes your problem. |
No, we are using 2018 edition.
|
Oops, I can't repro with |
When given this code:
rustfmt 1.2.2 stable removes the space between dyn and ::, resulting in this:
The text was updated successfully, but these errors were encountered: