-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Error suggests additional pub
when using pub pub fn ...
#87694
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 |
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: