]> git.lizzy.rs Git - rust.git/blob - src/docs/no_effect.txt
Auto merge of #9421 - xphoniex:fix-#9420, r=giraffate
[rust.git] / src / docs / no_effect.txt
1 ### What it does
2 Checks for statements which have no effect.
3
4 ### Why is this bad?
5 Unlike dead code, these statements are actually
6 executed. However, as they have no effect, all they do is make the code less
7 readable.
8
9 ### Example
10 ```
11 0;
12 ```