]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fail-no-dead-code.rs
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung
[rust.git] / src / test / ui / fail-no-dead-code.rs
1 #![deny(dead_code)]
2 #![allow(unreachable_code)]
3
4 fn foo() { //~ ERROR function 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() {}