about summary refs log tree commit diff
path: root/tests/ui/lint/dead-code/leading-underscore.rs
blob: 0c5fecb27a841a8b94970a4dfc4a0eed7aece1a8 (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
//@ run-pass

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