---
source: crates/laburnum-syntax-macro/src/tests/cst_tests.rs
expression: "use laburnum_syntax_macro::tests::cst_tests::test_cst_error_not_struct"
snapshot_kind: text
---
Input: >
  #[laburnum_syntax(CST)]
  pub enum NotAStruct {
      Token(NodeId),
      Trivia(NodeId),
  }

Error: >
  Error(
      [
          "#[laburnum_syntax] can only be applied to structs",
          "help: This attribute is designed to work with struct definitions only",
          "hint: Try using: #[laburnum_syntax(AST)] pub struct MyStruct { ... }",
      ],
  )
