rust/tests/ui/lint/dead-code/leading-underscore.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
306 B
Rust
Raw Normal View History

// run-pass
// pretty-expanded FIXME #23616
#![deny(dead_code)]
static _X: usize = 0;
fn _foo() {}
struct _Y {
2020-09-01 16:12:52 -05:00
_z: usize,
}
enum _Z {}
impl _Y {
fn _bar() {}
}
type _A = isize;
mod _bar {
fn _qux() {}
}
2020-09-01 16:12:52 -05:00
extern "C" {
#[link_name = "abort"]
fn _abort() -> !;
}
pub fn main() {}