]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | #![deny(dead_code)] |
2 | #![allow(unreachable_code)] | |
223e47cc | 3 | |
923072b8 | 4 | fn foo() { //~ ERROR function `foo` is never used |
223e47cc | 5 | |
1a4d82fc JJ |
6 | // none of these should have any dead_code exposed to the user |
7 | panic!(); | |
223e47cc | 8 | |
1a4d82fc | 9 | panic!("foo"); |
223e47cc | 10 | |
1a4d82fc | 11 | panic!("bar {}", "baz") |
223e47cc | 12 | } |
1a4d82fc JJ |
13 | |
14 | ||
15 | fn main() {} |