1 error: attribute must be of the form `#[non_exhaustive]`
2 --> $DIR/invalid-attribute.rs:3:1
4 LL | #[non_exhaustive(anything)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 error[E0701]: attribute can only be applied to a struct or enum
8 --> $DIR/invalid-attribute.rs:7:1
10 LL | #[non_exhaustive]
12 LL | //~^ ERROR attribute can only be applied to a struct or enum [E0701]
14 | ------------- not a struct or enum
16 error[E0701]: attribute can only be applied to a struct or enum
17 --> $DIR/invalid-attribute.rs:11:1
19 LL | #[non_exhaustive]
21 LL | //~^ ERROR attribute can only be applied to a struct or enum [E0701]
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`.