External Publication
Visit Post

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

Rust Internals [Unofficial] March 11, 2026
Source
It looks to me that the argument is unused in the original example? That argument to the function seems entirely useless. Perhaps it would be different in a larger more realistic example, but if so, such an example should be provided.

Discussion in the ATmosphere

Loading comments...