RS.CLIPPY.SIMILAR_NAMES

Similarly named items and bindings

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

What it does

Checks for names that are very similar and thus confusing.

Note: this lint looks for similar names throughout each scope. To allow it, you need to allow it on the scope level, not on the name that is reported.

Why is this bad?

It's hard to distinguish between names that differ only by a single character.

Example

let checked_exp = something;
let checked_expr = something_else;