---
source: crates/laburnum-syntax-macro/src/tests/error_tests.rs
expression: "use laburnum_syntax_macro::tests::error_tests::test_cst_missing_span_field"
snapshot_kind: text
---
Input: >
  #[laburnum_syntax(CST)]
  pub struct MissingSpan {
      other_field: NodeId<crate::Type>,
  }

Error: >
  Error(
      [
          "CST structs must have a 'span' field of type 'Span'",
          "help: Add a 'span: Span' field to your CST struct",
          "hint: Example: pub struct MyCst { span: Span, /* other fields */ }",
      ],
  )
