about summary refs log tree commit diff
path: root/src/test/run-pass/dead-code-leading-underscore.rs
blob: eff40111ac9d45ef2c5a30f4eca2189092d0fbcd (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
// 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 {
    #[link_name = "abort"]
    fn _abort() -> !;
}

pub fn main() {}