]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/test-warns-dead-code.rs
Rollup merge of #98653 - TaKO8Ki:add-regression-test-for-79494, r=Mark-Simulacrum
[rust.git] / src / test / 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() {}