mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
77b21b644f
Changes: - Move from EarlyLintPass - Fix entrypoint check with function path def_id.
13 lines
179 B
Rust
13 lines
179 B
Rust
// ignore-macos
|
|
// ignore-windows
|
|
|
|
#![feature(main)]
|
|
|
|
#[warn(clippy::main_recursion)]
|
|
#[allow(unconditional_recursion)]
|
|
#[main]
|
|
fn a() {
|
|
println!("Hello, World!");
|
|
a();
|
|
}
|