Enable never type in empty enum ui test; run cargo dev bless

This commit is contained in:
nahuakang 2020-12-28 20:18:27 +01:00
parent 469281c0dd
commit 83a458acf1
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
#![allow(dead_code)]
#![warn(clippy::empty_enum)]
// Enable never type to test empty enum lint
#![feature(never_type)]
enum Empty {}
fn main() {}

View file

@ -1,5 +1,5 @@
error: enum with no variants
--> $DIR/empty_enum.rs:4:1
--> $DIR/empty_enum.rs:5:1
|
LL | enum Empty {}
| ^^^^^^^^^^^^^