]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fail-no-dead-code-core.rs
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung
[rust.git] / src / test / ui / fail-no-dead-code-core.rs
1 #![deny(dead_code)]
2 #![allow(unreachable_code)]
3
4 #[macro_use]
5 extern crate core;
6
7 fn foo() { //~ ERROR function is never used
8
9     // none of these should have any dead_code exposed to the user
10     panic!();
11
12     panic!("foo");
13
14     panic!("bar {}", "baz")
15 }
16
17
18 fn main() {}