rust/tests/ui/test-attrs/test-warns-dead-code.rs
2024-02-16 20:02:50 +00:00

8 lines
116 B
Rust

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