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

Error: >
  Error(
      "Missing syntax type specification. Add either AST or CST to the attribute: #[laburnum_syntax(AST)] or #[laburnum_syntax(CST)].",
  )
