]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/basic.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / lint / dead-code / basic.rs
1 #![deny(dead_code)]
2 #![allow(unreachable_code)]
3
4 fn foo() { //~ ERROR function `foo` is never used
5
6     // none of these should have any dead_code exposed to the user
7     panic!();
8
9     panic!("foo");
10
11     panic!("bar {}", "baz")
12 }
13
14
15 fn main() {}