RS.CLIPPY.JUST_UNDERSCORES_AND_DIGITS

Unclear name

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: just_underscores_and_digits. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks if you have variables whose name consists of just underscores and digits.

Why is this bad?

It's hard to memorize what a variable means without a descriptive name.

Example

let _1 = 1;
let ___1 = 1;
let __1___2 = 11;