Skip to content

Provide meaningful compile error when build fails #14

Description

@SeokminHong

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions