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
However, if you run rustfmt, it will not error but simply quietly delete the word const between impl and std::default. This isn't great when using rustfmt at the crate level as it will of course delete all instances of const for trait impls, most likely breaking the build (and causing you to have to add them all back in).
The deletion seems like odd behavior in general, IMO: I'd expect rustfmt to give a hard error on syntax it thinks is legitimately invalid (as it usually does), and just do its best to normally format anything else.