mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
15 lines
181 B
Rust
15 lines
181 B
Rust
#![deny(dead_code)]
|
|
#![deny(dead_code_pub_in_binary)]
|
|
|
|
pub fn g() {} //~ ERROR function `g` is never used
|
|
|
|
fn h() {}
|
|
|
|
#[allow(dead_code)]
|
|
fn f() {
|
|
g();
|
|
h();
|
|
}
|
|
|
|
fn main() {}
|