]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/dead-code-leading-underscore.rs
auto merge of #16416 : nick29581/rust/log, r=pnkfelix
[rust.git] / src / test / run-pass / dead-code-leading-underscore.rs
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![deny(dead_code)]
12
13 static _X: uint = 0;
14
15 fn _foo() {}
16
17 struct _Y {
18     _z: uint
19 }
20
21 enum _Z {}
22
23 impl _Y {
24     fn _bar() {}
25 }
26
27 type _A = int;
28
29 mod _bar {
30     fn _qux() {}
31 }
32
33 extern {
34     #[link_name = "abort"]
35     fn _abort() -> !;
36 }
37
38 pub fn main() {}