1 error[E0518]: attribute should be applied to function or closure
2 --> $DIR/inline-disallow-on-variant.rs:2:5
8 | ------- not a function or closure
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0518`.