]> git.proxmox.com Git - rustc.git/blame - src/test/ui/dead-code-leading-underscore.rs
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / dead-code-leading-underscore.rs
CommitLineData
416331ca 1// run-pass
c34b1796
AL
2// pretty-expanded FIXME #23616
3
1a4d82fc
JJ
4#![deny(dead_code)]
5
c34b1796 6static _X: usize = 0;
1a4d82fc
JJ
7
8fn _foo() {}
9
10struct _Y {
c34b1796 11 _z: usize
1a4d82fc
JJ
12}
13
14enum _Z {}
15
16impl _Y {
17 fn _bar() {}
18}
19
c34b1796 20type _A = isize;
1a4d82fc
JJ
21
22mod _bar {
23 fn _qux() {}
24}
25
26extern {
27 #[link_name = "abort"]
28 fn _abort() -> !;
223e47cc
LB
29}
30
31pub fn main() {}