summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/no_effect_underscore_binding.txt
blob: 972f60dd01e92ec61d71845199fa1e05dabcd75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### What it does
Checks for binding to underscore prefixed variable without side-effects.

### Why is this bad?
Unlike dead code, these bindings are actually
executed. However, as they have no effect and shouldn't be used further on, all they
do is make the code less readable.

### Known problems
Further usage of this variable is not checked, which can lead to false positives if it is
used later in the code.

### Example
```
let _i_serve_no_purpose = 1;
```