mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
017ae1b21f
[rustdoc] Do not consider nested functions as main function even if named `main` in doctests Fixes #131893. If a nested function is called `main`, it is not considered as the entry point of the program. Therefore, doctests should not consider such functions as such either. r? `@notriddle`