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

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