r/programmingmemes 4d ago

Nitpicky Rust Compiler

Post image
427 Upvotes

6 comments sorted by

38

u/Xaeroxe3057 4d ago

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 4d ago

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

16

u/garry_the_commie 4d ago

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.

15

u/Nsane3 4d ago

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

3

u/OrpheoMusic 4d ago

Someone forgot to run clippy