rust/tests/ui/crate_level_checks/entrypoint_recursion.rs

13 lines
179 B
Rust
Raw Normal View History

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