]> git.lizzy.rs Git - rust.git/blob - tests/ui/test-attrs/test-warns-dead-code.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / test-attrs / test-warns-dead-code.rs
1 // compile-flags: --test
2
3 #![deny(dead_code)]
4
5 fn dead() {} //~ error: function `dead` is never used
6
7 fn main() {}