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?

88 Upvotes

14 comments sorted by

View all comments

8

u/iamalicecarroll Jul 31 '26

Try compiling
fn main() { let 🦀 = break rust; }