---
source: crates/laburnum-syntax-macro/src/tests/error_tests.rs
expression: "use laburnum_syntax_macro::tests::error_tests::test_cst_keyword_span_naming"
snapshot_kind: text
---
Input: >
  #[laburnum_syntax(CST)]
  pub struct KeywordNaming {
      span: Span,
      bad_name: KeywordSpan,
  }

Error: >
  Error(
      [
          "field 'bad_name' must end with '_keyword' for this field type",
          "help: CST field naming conventions require specific suffixes based on field type",
          "hint: Rename the field to 'bad_name_keyword' or similar",
      ],
  )
