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
rustfmt incorrectly formats the following code:
rustfmt
pub struct Arr where [u8; {10 / 2}]: Send {}
as
pub struct Arr where [u8; { 10 / 2 }]: Send, { 10 / 2}]: Send {}
Both the braces and the division are required. This bug does not happen for where bounds on traits.
pub trait Arr where [u8; {10 / 2}]: Send {} // This is formatted correctly
Found while looking at rust-lang/rust#72819
The text was updated successfully, but these errors were encountered:
Handle const generic bounds in structs
f03346b
Closes rust-lang#4218
494452b
Closes #4218
Successfully merging a pull request may close this issue.
rustfmt
incorrectly formats the following code:as
Both the braces and the division are required.
This bug does not happen for where bounds on traits.
Found while looking at rust-lang/rust#72819
The text was updated successfully, but these errors were encountered: