]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/leading-underscore.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / lint / dead-code / leading-underscore.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 #![deny(dead_code)]
5
6 static _X: usize = 0;
7
8 fn _foo() {}
9
10 struct _Y {
11     _z: usize,
12 }
13
14 enum _Z {}
15
16 impl _Y {
17     fn _bar() {}
18 }
19
20 type _A = isize;
21
22 mod _bar {
23     fn _qux() {}
24 }
25
26 extern "C" {
27     #[link_name = "abort"]
28     fn _abort() -> !;
29 }
30
31 pub fn main() {}