rust/tests/ui/exhaustive_items.stderr
2021-01-21 13:39:00 -08:00

29 lines
559 B
Plaintext

error: enums should not be exhaustive
--> $DIR/exhaustive_items.rs:10:1
|
LL | / pub enum Exhaustive {
LL | | Foo,
LL | | Bar,
LL | | Baz,
LL | | Quux(String),
LL | | }
| |_^
|
note: the lint level is defined here
--> $DIR/exhaustive_items.rs:3:9
|
LL | #![deny(clippy::exhaustive_enums)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
help: try adding #[non_exhaustive]
|
LL | #[non_exhaustive]
LL | pub enum Exhaustive {
LL | Foo,
LL | Bar,
LL | Baz,
LL | Quux(String),
...
error: aborting due to previous error