]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/mut_mut.txt
Rollup merge of #101389 - lukaslueg:rcgetmutdocs, r=m-ou-se
[rust.git] / src / tools / clippy / src / docs / mut_mut.txt
1 ### What it does
2 Checks for instances of `mut mut` references.
3
4 ### Why is this bad?
5 Multiple `mut`s don't add anything meaningful to the
6 source. This is either a copy'n'paste error, or it shows a fundamental
7 misunderstanding of references.
8
9 ### Example
10 ```
11 let x = &mut &mut y;
12 ```