mirror of
https://github.com/RGBCube/cstree
synced 2025-07-28 01:27:44 +00:00
Add derive macro for Syntax
(used to be Language
) (#51)
This commit is contained in:
parent
2aa543036f
commit
c5279bae7d
70 changed files with 1459 additions and 899 deletions
10
test_suite/tests/ui/repr/wrong_repr_c.stderr
Normal file
10
test_suite/tests/ui/repr/wrong_repr_c.stderr
Normal file
|
@ -0,0 +1,10 @@
|
|||
error: syntax kind definitions must be `#[repr(u32)]` to derive `Syntax`
|
||||
--> tests/ui/repr/wrong_repr_c.rs:4:1
|
||||
|
|
||||
4 | / #[repr(C)]
|
||||
5 | | pub enum SyntaxKind {
|
||||
6 | | A,
|
||||
7 | | #[static_text("b")]
|
||||
8 | | B,
|
||||
9 | | }
|
||||
| |_^
|
Loading…
Add table
Add a link
Reference in a new issue