Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide meaningful compile error when build fails #14

Open
SeokminHong opened this issue Aug 24, 2021 · 0 comments
Open

Provide meaningful compile error when build fails #14

SeokminHong opened this issue Aug 24, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@SeokminHong
Copy link
Owner

SeokminHong commented Aug 24, 2021

When the required fields are not properly provided, the compiler cannot deduce the build function. In that time, the compile error message would be like this:

no method named `build` found for struct `TestBuilder<...>` in the current scope

It will be helpful that the compiler suggests missing required fields like this:

Cannot build `Test` because following fields are required:
  - name: String
  - age: u8

It may be easily implemented if the Specialization feature is implemented, but the feature is not stable.

@SeokminHong SeokminHong added enhancement New feature or request help wanted Extra attention is needed labels Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant