2014-08-02 07:41:40 -05:00
|
|
|
#![deny(dead_code)]
|
|
|
|
#![allow(unreachable_code)]
|
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
fn foo() { //~ ERROR function `foo` is never used
|
2014-08-02 07:41:40 -05:00
|
|
|
|
|
|
|
// none of these should have any dead_code exposed to the user
|
2014-10-09 14:17:22 -05:00
|
|
|
panic!();
|
2014-08-02 07:41:40 -05:00
|
|
|
|
2014-10-09 14:17:22 -05:00
|
|
|
panic!("foo");
|
2014-08-02 07:41:40 -05:00
|
|
|
|
2014-10-09 14:17:22 -05:00
|
|
|
panic!("bar {}", "baz")
|
2014-08-02 07:41:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {}
|