Because build clashes with code generated by the macro. The same happens with non-inline props and a field named build.
Expected behavior
The macro generates boilerplate which does not collide with regular names, either buy using a trait (PropTrait::build) or by generating names that have a very slim/no chance of colliding with user code.
Describe the bug
This does not compile:
Because
build
clashes with code generated by the macro. The same happens with non-inline props and a field namedbuild
.Expected behavior
The macro generates boilerplate which does not collide with regular names, either buy using a trait (PropTrait::build) or by generating names that have a very slim/no chance of colliding with user code.
Environment