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