mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
10 lines
249 B
Rust
10 lines
249 B
Rust
#![deny(dead_code)]
|
|
#![deny(dead_code_pub_in_binary)]
|
|
//~^ WARN unused attribute
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
pub fn unused_pub_fn() {} // Should NOT error because it's a library
|
|
|
|
fn unused_priv_fn() {} //~ ERROR function `unused_priv_fn` is never used
|