-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add builder tests for name conflicts
Test cases of name conflicts between the builder() associated function generated for the builder API and a getter method generated by the Message derive for a field named "builder". Provide a doc test on how to avoid the conflict with the Default impl on the builder struct. Verify the no-conflict case where the field does not have a getter generated for it.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters