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

Resolve: better error message when resolve fails due to privateness #6392

Closed
kud1ing opened this issue May 10, 2013 · 1 comment
Closed

Resolve: better error message when resolve fails due to privateness #6392

kud1ing opened this issue May 10, 2013 · 1 comment

Comments

@kud1ing
Copy link

kud1ing commented May 10, 2013

Say you have a module foo.rs containing a struct Foo; where you've forgot to add a pub.

When you try to use foo::Foo, you'd get error: failed to resolve import: foo::Foo.
This may be puzzling.

How about a message in the tone of "there is a foo:Foo but that is private, so i am afraid i can't let you use it"?

@jdm
Copy link
Contributor

jdm commented May 10, 2013

Nominating for production ready.

@kud1ing kud1ing closed this as completed May 13, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 6, 2020
Rustup

changelog: none

r? `@ghost`
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