rust/src/test/ui/lint/lint-dead-code-unused-variant-pub.rs

15 lines
136 B
Rust
Raw Normal View History

2019-08-21 18:30:11 -05:00
// run-pass
#![deny(unused)]
pub struct F;
pub struct B;
pub enum E {
Foo(F),
Bar(B),
}
fn main() {
let _ = E::Foo(F);
}