rust/src/test/ui/fail-no-dead-code-core.rs
2018-12-25 21:08:33 -07:00

19 lines
274 B
Rust

#![deny(dead_code)]
#![allow(unreachable_code)]
#[macro_use]
extern crate core;
fn foo() { //~ ERROR function is never used
// none of these should have any dead_code exposed to the user
panic!();
panic!("foo");
panic!("bar {}", "baz")
}
fn main() {}