summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/basic.rs
blob: 3b8ffd58cb54ec1d5b81064c2aaaf190d8ec6a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![deny(dead_code)]
#![allow(unreachable_code)]

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() {}