Skip to content

"cannot declare a new module at this ___location" should specify good locations #37184

@durka

Description

@durka

The error has two notes full of weasel words (2x "maybe", 1x "possibly") and it should probably say something straightforward like "modules are declared at the crate root, or mod.rs at the root of a source directory".

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions