summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/mut_mut.txt
blob: 0bd34dd24b26a0c189d3d9ad3bf5453e048ae1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
### What it does
Checks for instances of `mut mut` references.

### Why is this bad?
Multiple `mut`s don't add anything meaningful to the
source. This is either a copy'n'paste error, or it shows a fundamental
misunderstanding of references.

### Example
```
let x = &mut &mut y;
```