mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 16:32:53 +03:00
13 lines
263 B
Rust
13 lines
263 B
Rust
#![deny(dead_code)]
|
|
#![deny(dead_code_pub_in_binary)]
|
|
|
|
pub fn unused_pub_fn() {} //~ ERROR function `unused_pub_fn` is never used
|
|
|
|
pub fn used_pub_fn() {}
|
|
|
|
fn unused_priv_fn() {} //~ ERROR function `unused_priv_fn` is never used
|
|
|
|
fn main() {
|
|
used_pub_fn();
|
|
}
|