rust/src/test/ui/lint/dead-code/leading-underscore.rs
Pi Lanningham e063ddb12e Move dead_code related tests to test/ui/dead-code
This helps organize the tests better.  I also renamed several of the tests to remove redundant dead-code in the path, and better match what they're testing
2019-10-26 21:42:52 -04:00

31 lines
301 B
Rust

// run-pass
// pretty-expanded FIXME #23616
#![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 {
#[link_name = "abort"]
fn _abort() -> !;
}
pub fn main() {}