-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lint against mod lib;
#9677
Labels
Comments
Alexendoo
added
the
good-first-issue
These issues are a good way to get started with Clippy
label
Oct 20, 2022
@crlf0710 @Alexendoo I'm interested in working on this issue. |
st3fan
added a commit
to st3fan/rust-clippy
that referenced
this issue
Oct 25, 2022
st3fan
added a commit
to st3fan/rust-clippy
that referenced
this issue
Oct 25, 2022
st3fan
added a commit
to st3fan/rust-clippy
that referenced
this issue
Oct 25, 2022
Looks like rustc had beaten us to this one rust-lang/rust#94467 Sorry about that @st3fan, I wasn't aware of that lint at the time |
No worries. I enjoyed hacking on this and I learned some new things. I'll find something else to contribute! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
What it does
Found that some beginners write
mod lib;
inmain.rs
to referencelib.rs
contents. Definitely not what people actually want to do!Lint Name
No response
Category
suspicious
Advantage
No response
Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: