-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Error suggests additional pub
when using pub pub fn ...
#87694
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
Comments
I have been looking at this problem and I would like to share my findings so far. It seems that the second I am new to this area of the code. I have been trying to create a |
It will probably be very hard to handle this from My first intuition would be to pass a parameter to Edit: actual error of
|
I started investigating the call tree between
|
I have got the error message changed! How should I word the message, and how should the spans be shown? The warning for Link to my fork, where the work is being done. |
@rustbot claim. |
@rustbot release-assignment. |
@rustbot claim |
Uh oh!
There was an error while loading. Please reload this page.
I tried this code:
I expected to see this happen: Rust tells me to fix the issue by removing a
pub
.Instead, this happened: Rust tells me to add a
pub
before the existing ones:pub pub pub
:This will also be an issue with
const async const
(and similar errors with other keywords) after #87235 is merged.Meta
rustc --version --verbose
:Backtrace
@rustbot label A-diagnostics T-compiler
The text was updated successfully, but these errors were encountered: