error: Only enums can use this derive
 --> /tests/derive-tests/as_variant_ref/fail/struct.rs:4:12
  |
4 | pub struct Struct {
  |            ^^^^^^
