We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
related: rust-lang/rustfmt#3770 rust playground link: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ef4769175cb5b4febb445b05c1e27b82
The second !unsafe block return &&bool. I think the second block should return bool.
fn return_bool() -> bool { unsafe { false } // expected (), found bool && !unsafe { true } // expected bool found &&bool && !unsafe { false } // expected bool found bool }
The text was updated successfully, but these errors were encountered:
Simplifies to:
fn return_bool() -> bool { { false } && { false } && { false } }
Sorry, something went wrong.
This is an expected corner-case in parsing. See #17930.
Closing.
No branches or pull requests
related: rust-lang/rustfmt#3770
rust playground link: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ef4769175cb5b4febb445b05c1e27b82
The second !unsafe block return &&bool. I think the second block should return bool.
The text was updated successfully, but these errors were encountered: