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

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

15 lines
138 B
Rust
Raw Normal View History

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