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
Describe the bug Rustfmt yeets const param defaults
playground
#![feature(const_generics_defaults)] struct Foo<const N: usize = 5usize>; fn main() {}
run cargo +nightly fmt or rustfmt or run the tool in playground etc and it gets formatted to:
cargo +nightly fmt
rustfmt
#![feature(const_generics_defaults)] struct Foo<const N: usize>; fn main() {}
Expected behavior it to not do this
Meta
The text was updated successfully, but these errors were encountered:
I ended up getting distracted and looking into this a bit can probably PR a fix, no idea if its the "correct" fix
Sorry, something went wrong.
thank you for the report and the corresponding PR! i've got a lot of issue/PR catch up to get through but will hopefully get to it shortly
Successfully merging a pull request may close this issue.
Describe the bug
Rustfmt yeets const param defaults
playground
run
cargo +nightly fmt
orrustfmt
or run the tool in playground etc and it gets formatted to:Expected behavior
it to not do this
Meta
The text was updated successfully, but these errors were encountered: