Missing warning when applying #[path = "..."]
to a inline module
#133907
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
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
A similar warning exists for other misuses of the attribute, like
(IMO, this misuse should eventually become a hard error, but that's not the point of this issue.)
Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: