summaryrefslogtreecommitdiffstats
path: root/tests/ui/test-attrs/test-warns-dead-code.rs
blob: 4190885b6b214c29a1b0ea9725738072f4024d54 (plain)
1
2
3
4
5
6
7
// compile-flags: --test

#![deny(dead_code)]

fn dead() {} //~ error: function `dead` is never used

fn main() {}