rust/src/test/ui/test-warns-dead-code.rs
2018-12-25 21:08:33 -07:00

8 lines
116 B
Rust

// compile-flags: --test
#![deny(dead_code)]
fn dead() {} //~ error: function is never used: `dead`
fn main() {}