We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Before formatting:
trait A {} pub struct B<const N: usize>([usize; N]); impl<const N: usize> A for B<{ N }> { }
After formatting:
trait A {} pub struct B<const N: usize>([usize; N]); impl<const N: usize> A for B<{ N }> { N }> {}
Used 1.2.2 nightly (2019-04-24 5274b49)
The text was updated successfully, but these errors were encountered:
It gets a little bit weirder, if the trait has a method:
#![feature(const_generics)] trait A { fn foo(&self); } pub struct B<const N: usize>([usize; N]); impl<const N: usize> A for B<{ N }> { fn foo(&self) {} }
trait A { fn foo(&self); } pub struct B<const N: usize>([usize; N]); impl<const N: usize> A for B<{ N }> { N }> { N }> { fn foo(&self) {} }
There's yet another additional { N } showing up.
{ N }
Sorry, something went wrong.
fix the bug add unwanted code to impl (rust-lang#3601)
489403f
fix the bug add unwanted code to impl (#3601) (#3602)
5607178
Successfully merging a pull request may close this issue.
Before formatting:
After formatting:
Used 1.2.2 nightly (2019-04-24 5274b49)
The text was updated successfully, but these errors were encountered: