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

pub fn main() {}