2022-04-06 13:26:59 +00:00
|
|
|
error: this seems like a manual implementation of the non-exhaustive pattern
|
2022-06-25 12:16:33 +00:00
|
|
|
--> $DIR/manual_non_exhaustive_enum.rs:5:1
|
2022-04-06 13:26:59 +00:00
|
|
|
|
|
|
|
|
LL | enum E {
|
|
|
|
| ^-----
|
|
|
|
| |
|
|
|
|
| _help: add the attribute: `#[non_exhaustive] enum E`
|
|
|
|
| |
|
|
|
|
LL | | A,
|
|
|
|
LL | | B,
|
|
|
|
LL | | #[doc(hidden)]
|
|
|
|
LL | | _C,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-non-exhaustive` implied by `-D warnings`
|
|
|
|
help: remove this variant
|
2022-06-25 12:16:33 +00:00
|
|
|
--> $DIR/manual_non_exhaustive_enum.rs:9:5
|
2022-04-06 13:26:59 +00:00
|
|
|
|
|
|
|
|
LL | _C,
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: this seems like a manual implementation of the non-exhaustive pattern
|
2022-06-25 12:16:33 +00:00
|
|
|
--> $DIR/manual_non_exhaustive_enum.rs:14:1
|
2022-04-06 13:26:59 +00:00
|
|
|
|
|
|
|
|
LL | / enum Ep {
|
|
|
|
LL | | A,
|
|
|
|
LL | | B,
|
|
|
|
LL | | #[doc(hidden)]
|
|
|
|
LL | | _C,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
help: remove this variant
|
2022-06-25 12:16:33 +00:00
|
|
|
--> $DIR/manual_non_exhaustive_enum.rs:18:5
|
2022-04-06 13:26:59 +00:00
|
|
|
|
|
|
|
|
LL | _C,
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|