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

Error: >
  Error(
      [
          "field name 'self_' converts to reserved keyword 'Self' when converted to UpperCamelCase",
          "help: Choose a different field name that doesn't conflict with Rust keywords when converted to UpperCamelCase",
          "hint: Try using a different name like 'my_field' instead of 'self_'",
      ],
  )

Error Message: >
  field name 'self_' converts to reserved keyword 'Self' when converted to UpperCamelCase
