Skip to content

Error message: "pub not needed here" message #49133

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
mitsuhiko opened this issue Mar 18, 2018 · 1 comment
Closed

Error message: "pub not needed here" message #49133

mitsuhiko opened this issue Mar 18, 2018 · 1 comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@mitsuhiko
Copy link
Contributor

It's a minor thing but currently "pub' not needed here" is an error and does not actually mean "needed" but "allowed because implied". Maybe the message would be less confusing for a user if it actually says "pub not permitted here because it's implied".

@oli-obk oli-obk added E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. A-diagnostics Area: Messages for errors, warnings, and lints labels Mar 18, 2018
dileepbapat added a commit to dileepbapat/rust that referenced this issue Mar 19, 2018
kennytm pushed a commit to kennytm/rust that referenced this issue Mar 19, 2018
kennytm added a commit to kennytm/rust that referenced this issue Mar 20, 2018
rust-lang#49133 - Reworded the Error message: "`pub` not needed here" message
@estebank
Copy link
Contributor

Fixed in #49166.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

3 participants