summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crate_level_checks/entrypoint_recursion.rs
blob: 1b3bcece6f1e7923de1d770ee27679c73ba7b85e (plain)
1
2
3
4
5
6
7
8
9
10
11
// ignore-macos

#![feature(rustc_attrs)]

#[warn(clippy::main_recursion)]
#[allow(unconditional_recursion)]
#[rustc_main]
fn a() {
    println!("Hello, World!");
    a();
}