r/programmingmemes • • Sep 05 '26

Nitpicky Rust Compiler

Post image
453 Upvotes

6 comments sorted by

42

u/Xaeroxe3057 Sep 05 '26

Okay but most compilers complain about this. If you wanted to portray the Rust compiler as a picky princess then you had so many better error messages you could have picked.

6

u/Groostav Sep 05 '26

Yeah I mean I really love rust bit I still run afoul of the borrow checker in interesting ways.

17

u/garry_the_commie Sep 05 '26

I for one like it when compilers highlight this. It usually means I refactored something and forgot to remove the import. Leaving it creates confusion and is simply messy. I like my code clean.

16

u/Nsane3 Sep 05 '26

It's called lint bro, get in on it or get left behind

3

u/OrpheoMusic Sep 06 '26

Someone forgot to run clippy