How Rust Knows When You're Not Using a Variable: The _ Prefix Trick
In Rust, aside from variables and struct fields, you can also bind memory to patterns. Some of these patterns are used by the compiler to signal certain conditions. This is the point of this article: how does the Rust compiler know you'll use a variable?
6/2/2025