summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/dead-code/with-core-crate.rs
blob: 0a94b528f3339945b2d3a9ca8fa81a06550e000f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![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() {}