rust-clippy/tests/compile-fail/empty_enum.rs
2017-02-04 22:59:39 -07:00

11 lines
221 B
Rust

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