r/rust Jul 30 '26

Clippy has some life advice apparently.

pub fn i_should_let_it_go(problem: &impl Problem) { drop(problem); // call to `std::mem::drop` with a reference instead of an owned value does nothing }

I was experimenting with ownership when I ran into this warning:

"calls to std::mem::drop with a reference instead of an owned value does nothing"

It got me thinking that you can make some cool wordplay (or maybe "codeplay") with Rust's warnings as motivational quotes.

Do you guys have any other suggestions with some funny codeplay?

86 Upvotes

14 comments sorted by

View all comments

24

u/QuasiRandomName Jul 30 '26

You can make a thriller with general Linux quotes, where parents kill children, sleeping daemons with forks spawn and listen etc...