Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
lint
/
dead-code
/
leading-underscore.rs
blob: 0c5fecb27a841a8b94970a4dfc4a0eed7aece1a8 [
file
] [
log
] [
blame
]
//@ 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
()
{}