-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Misleading error message for "use self::submodule" when "pub mod submodule;" is in the same file #19498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
slightly reduced test case with one file:
|
The bug also appears when an absolute path is used to import the submodule
|
mukilan
added a commit
to mukilan/rust
that referenced
this issue
Dec 7, 2014
bors
pushed a commit
that referenced
this issue
Dec 7, 2014
bors
added a commit
that referenced
this issue
Dec 7, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
top.rs
and submodule.rs in the same directory
The "use self::submodule" is declaring the same item name as "pub mod submodule" and should be illegal. The error message is misleading and needs to be changed.
The text was updated successfully, but these errors were encountered: