granite-rust/tests/ui/empty_enum.rs
2017-02-07 21:05:30 +01: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() {
}