unnameable_types
lint emits incorrect visibility syntax
#126241
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
L-unnameable_types
Lint: unnameable_types
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
pub(foo)
is not valid visibility syntax.Rust Version
Note that this is the pre-release of stable 1.79.0. Nightly has the same flaw.
The text was updated successfully, but these errors were encountered: