Skip to content
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

Conflicting type alias is reported as conflicting submodule #24081

Closed
bvssvni opened this issue Apr 4, 2015 · 0 comments
Closed

Conflicting type alias is reported as conflicting submodule #24081

bvssvni opened this issue Apr 4, 2015 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@bvssvni
Copy link

bvssvni commented Apr 4, 2015

Playpen http://is.gd/YTFOov

use std::ops::Add;

type Add = Add;

fn main() {
}
<anon>:1:5: 1:18 error: import `Add` conflicts with existing submodule [E0256]
<anon>:1 use std::ops::Add;
             ^~~~~~~~~~~~~
@steveklabnik steveklabnik added the A-diagnostics Area: Messages for errors, warnings, and lints label Apr 6, 2015
nham pushed a commit to nham/rust that referenced this issue Jun 17, 2015
Previously, it said "import `Foo` conflicts with existing submodule" even
when it was a type alias, enum, or trait. The message now says the conflict
is with "type in this module" in the case of the first two, and "trait in
this module" for the last one.

Fixes rust-lang#24081.
bors added a commit that referenced this issue Jun 18, 2015
Previously, it said "import `Foo` conflicts with existing submodule" even
when it was a type alias, enum, or trait. The message now says the conflict
is with "type in this module" in the case of the first two, and "trait in
this module" for the last one.

Fixes #24081.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

2 participants