You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, is there any way to try this feature in the today's nightly build?
I tried --config version=Two option but it is still generating the broken code...
Here's a test case I just copy-and-pasted the lulf's sample code, with adding // rustfmt-version: Two: wada314@d0d72ff
It is still failing as lulf described.
Describe the bug
When constraining a generic associated type, rustfmt will remove any parameters for that type. I.e.:
will be reformatted to
To Reproduce
The following code compiles and runs, but when running rustfmt on it it will remove the generics for the associated type:
Expected behavior
The above code compiles and should not be formatted so it doesn't compile.
Meta
The text was updated successfully, but these errors were encountered: