package my_package;
enum Type {
BOOL = 0;
}
message MyMessage {
Type type = 1;
}
error: expected identifier, found keyword `type`
--> src\my_package.rs:34:9
|
32 | pub struct MyMessage {
| --------- while parsing this struct
33 | #[fory(id = 1)]
34 | pub type: Type,
| ^^^^ expected identifier, found keyword
|
help: escape `type` to use it as an identifier
|
34 | pub r#type: Type,
| ++
Search before asking
Version
"0.16.0"
Component(s)
Rust
Minimal reproduce step
test.fdl
foryc --lang rust --rust_out .\src\ .\pcl.fdlWhat did you expect to see?
Code should compile
What did you see instead?
Anything Else?
No response
Are you willing to submit a PR?