]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/main_recursion.txt
Rollup merge of #101602 - nnethercote:AttrTokenStream, r=petrochenkov
[rust.git] / src / tools / clippy / src / docs / main_recursion.txt
1 ### What it does
2 Checks for recursion using the entrypoint.
3
4 ### Why is this bad?
5 Apart from special setups (which we could detect following attributes like #![no_std]),
6 recursing into main() seems like an unintuitive anti-pattern we should be able to detect.
7
8 ### Example
9 ```
10 fn main() {
11     main();
12 }
13 ```