mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +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();
|
|
}
|