External Publication
Visit Post

Pre-feature request: suppress unused variable warning for unit-type arguments

Rust Internals [Unofficial] March 11, 2026
Source

mathstuf:

So I end up with let _ = unused_arg; in the body of the default impl (that doesn't use/need the argument).

I also do this for the improved docs.

let _ignored = (the, args);

Discussion in the ATmosphere

Loading comments...