Calling a static method on a type with no static method gives undeclared module
error
#7950
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
This is pretty confusing, it'd be nice to at least mention that there isn't a static method with that name like in the second run where there is another static method.
I presume this is because static methods create a secret
mod
with the same name as the type, one possible resolution would be to always create thismod
rather than only doing so when required.The text was updated successfully, but these errors were encountered: