Skip to content

Commit 83a458a

Browse files
committed
Enable never type in empty enum ui test; run cargo dev bless
1 parent 469281c commit 83a458a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/ui/empty_enum.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![allow(dead_code)]
22
#![warn(clippy::empty_enum)]
3-
3+
// Enable never type to test empty enum lint
4+
#![feature(never_type)]
45
enum Empty {}
56

67
fn main() {}

tests/ui/empty_enum.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: enum with no variants
2-
--> $DIR/empty_enum.rs:4:1
2+
--> $DIR/empty_enum.rs:5:1
33
|
44
LL | enum Empty {}
55
| ^^^^^^^^^^^^^

0 commit comments

Comments
 (0)