]> git.lizzy.rs Git - rust.git/blob - src/docs/mut_mut.txt
Auto merge of #9421 - xphoniex:fix-#9420, r=giraffate
[rust.git] / 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 ```