Unused variables are a warning:
https://play.rust-lang.org/?version=stable&mode=debug&editio...
Re:The Core of Rust
by Ar-Curunir on Thursday August 21, 2025 @04:22PM
(#44977584)
What? Unused variables are warnings in Rust. Are you thinking of Go?
Especially unused variables being a hard compilation error, not a warning.