]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/dead-code/with-core-crate.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / lint / dead-code / with-core-crate.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() {}