rust/tests/ui/empty_enum.rs

8 lines
147 B
Rust
Raw Normal View History

2017-02-04 23:59:39 -06:00
#![allow(dead_code)]
2018-07-28 10:34:52 -05:00
#![warn(clippy::empty_enum)]
// Enable never type to test empty enum lint
#![feature(never_type)]
2017-02-08 07:58:07 -06:00
enum Empty {}
2018-12-09 16:26:16 -06:00
fn main() {}