1 error: malformed `non_exhaustive` attribute input
2 --> $DIR/invalid-attribute.rs:1:1
4 LL | #[non_exhaustive(anything)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[non_exhaustive]`
7 error[E0701]: attribute can only be applied to a struct or enum
8 --> $DIR/invalid-attribute.rs:5:1
10 LL | #[non_exhaustive]
14 | ------------- not a struct or enum
16 error[E0701]: attribute can only be applied to a struct or enum
17 --> $DIR/invalid-attribute.rs:9:1
19 LL | #[non_exhaustive]
26 | |_- not a struct or enum
28 error: aborting due to 3 previous errors
30 For more information about this error, try `rustc --explain E0701`.