We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 469281c commit 83a458aCopy full SHA for 83a458a
tests/ui/empty_enum.rs
@@ -1,6 +1,7 @@
1
#![allow(dead_code)]
2
#![warn(clippy::empty_enum)]
3
-
+// Enable never type to test empty enum lint
4
+#![feature(never_type)]
5
enum Empty {}
6
7
fn main() {}
tests/ui/empty_enum.stderr
@@ -1,5 +1,5 @@
error: enum with no variants
- --> $DIR/empty_enum.rs:4:1
+ --> $DIR/empty_enum.rs:5:1
|
LL | enum Empty {}
| ^^^^^^^^^^^^^
0 commit comments