rust/tests/ui/crate_level_checks/entrypoint_recursion.rs
2022-07-20 21:41:12 +03:00

12 lines
174 B
Rust

// ignore-macos
#![feature(rustc_attrs)]
#[warn(clippy::main_recursion)]
#[allow(unconditional_recursion)]
#[rustc_main]
fn a() {
println!("Hello, World!");
a();
}