summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/dead-code/leading-underscore.rs
blob: d3582961b3e39b15e9380a5f34e13009f7de681b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// run-pass
// pretty-expanded FIXME #23616

#![deny(dead_code)]

static _X: usize = 0;

fn _foo() {}

struct _Y {
    _z: usize,
}

enum _Z {}

impl _Y {
    fn _bar() {}
}

type _A = isize;

mod _bar {
    fn _qux() {}
}

extern "C" {
    #[link_name = "abort"]
    fn _abort() -> !;
}

pub fn main() {}