1 error: exported enums should not be exhaustive
2 --> $DIR/exhaustive_items.rs:11:5
4 LL | / pub enum Exhaustive {
12 note: the lint level is defined here
13 --> $DIR/exhaustive_items.rs:3:9
15 LL | #![deny(clippy::exhaustive_enums, clippy::exhaustive_structs)]
16 | ^^^^^^^^^^^^^^^^^^^^^^^^
17 help: try adding #[non_exhaustive]
19 LL | #[non_exhaustive]
20 LL | pub enum Exhaustive {
23 error: exported enums should not be exhaustive
24 --> $DIR/exhaustive_items.rs:20:5
26 LL | / pub enum ExhaustiveWithAttrs {
34 help: try adding #[non_exhaustive]
36 LL | #[non_exhaustive]
37 LL | pub enum ExhaustiveWithAttrs {
40 error: exported structs should not be exhaustive
41 --> $DIR/exhaustive_items.rs:55:5
43 LL | / pub struct Exhaustive {
45 LL | | pub bar: String,
49 note: the lint level is defined here
50 --> $DIR/exhaustive_items.rs:3:35
52 LL | #![deny(clippy::exhaustive_enums, clippy::exhaustive_structs)]
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
54 help: try adding #[non_exhaustive]
56 LL | #[non_exhaustive]
57 LL | pub struct Exhaustive {
60 error: aborting due to 3 previous errors