mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 09:23:31 +00: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
|