rust/tests/ui/crate_level_checks/entrypoint_recursion.rs
2021-04-16 13:04:02 +08:00

13 lines
192 B
Rust

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