2022-05-05 14:12:52 +00:00
|
|
|
error: this seems like a manual implementation of the non-exhaustive pattern
|
2022-06-30 08:50:09 +00:00
|
|
|
--> $DIR/manual_non_exhaustive_enum.rs:5:1
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
|
LL | enum E {
|
|
|
|
| ^-----
|
|
|
|
| |
|
|
|
|
| _help: add the attribute: `#[non_exhaustive] enum E`
|
|
|
|
| |
|
2023-07-28 19:35:48 +00:00
|
|
|
LL | |
|
2022-05-05 14:12:52 +00:00
|
|
|
LL | | A,
|
|
|
|
LL | | B,
|
|
|
|
LL | | #[doc(hidden)]
|
|
|
|
LL | | _C,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
help: remove this variant
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/manual_non_exhaustive_enum.rs:10:5
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
|
LL | _C,
|
|
|
|
| ^^
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::manual-non-exhaustive` implied by `-D warnings`
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
error: this seems like a manual implementation of the non-exhaustive pattern
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/manual_non_exhaustive_enum.rs:15:1
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
|
LL | / enum Ep {
|
2023-07-28 19:35:48 +00:00
|
|
|
LL | |
|
2022-05-05 14:12:52 +00:00
|
|
|
LL | | A,
|
|
|
|
LL | | B,
|
|
|
|
LL | | #[doc(hidden)]
|
|
|
|
LL | | _C,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
help: remove this variant
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/manual_non_exhaustive_enum.rs:20:5
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
|
LL | _C,
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|