-
Notifications
You must be signed in to change notification settings - Fork 883
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
Rustfmt breaks method call on || .. #4808
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Working input code:
Rustfmt diff as of current master (292c0cc):
The transformed code produced by rustfmt fails to compile.
To Reproduce
Run rustfmt on playground or locally. Try to compile code. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f76a649e0bd1b99cbebc46c711ca9bf5
Expected behavior
I would expect compilable output, either unchanged
|| .. .method()
or parenthesized(|| ..).method()
.Meta
rustfmt src.rs
The text was updated successfully, but these errors were encountered: