rust-clippy/tests/compile-fail/empty_enum.rs

11 lines
200 B
Rust
Raw Normal View History

#![feature(plugin)]
#![plugin(clippy)]
#![deny(empty_enum)]
enum Empty {} //~ ERROR enum with no variants
//~^ HELP consider using the uninhabited type `!` or a wrapper around it
fn main() {
}