"mod lib" in lib.rs produces incorrect error message #36146
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The lexing & parsing of Rust source code to an AST
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
lib.rs:
a1.rs - empty file.
Error:
Error location and some of the messages incorrectly refer to a1 module instead of lib. Module a1 itself is declared correctly. If I write lib before a1, the error starts making more sense:
lib.rs:
Error:
The text was updated successfully, but these errors were encountered: