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

Strange error message on impl name resolution error #16144

Closed
kmcallister opened this issue Jul 31, 2014 · 3 comments
Closed

Strange error message on impl name resolution error #16144

kmcallister opened this issue Jul 31, 2014 · 3 comments

Comments

@kmcallister
Copy link
Contributor

struct Foo;

mod bar {
    impl Foo {
        fn f() { }
    }
}

gives

baz.rs:4:10: 4:13 error: found module name used as a type: impl bar::Foo::Foo (id=7)
baz.rs:4     impl Foo {

when the actual issue is that one should write impl super::Foo or similar.

rustc 0.11.0 (49bc17b 2014-07-07 17:16:34 +0000)

@jdm
Copy link
Contributor

jdm commented Jul 31, 2014

Dup of #12729.

@jdm jdm closed this as completed Jul 31, 2014
@jdm jdm reopened this Jul 31, 2014
@jdm
Copy link
Contributor

jdm commented Jul 31, 2014

By which I mean #8767, but the error messages are slightly different. Dunno.

@jdm
Copy link
Contributor

jdm commented Jul 31, 2014

My mistake, old error message. Dup.

@jdm jdm closed this as completed Jul 31, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants