mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
19 lines
280 B
Rust
19 lines
280 B
Rust
#![deny(dead_code)]
|
|
#![allow(unreachable_code)]
|
|
|
|
#[macro_use]
|
|
extern crate core;
|
|
|
|
fn foo() { //~ ERROR function `foo` is never used
|
|
|
|
// none of these should have any dead_code exposed to the user
|
|
panic!();
|
|
|
|
panic!("foo");
|
|
|
|
panic!("bar {}", "baz")
|
|
}
|
|
|
|
|
|
fn main() {}
|