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

Add a compile_fail test for mandatory fields #147

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

sunsided
Copy link
Contributor

This adds an additional compile_fail test to ensure the following does not work:

use typed_builder::TypedBuilder;

#[derive(TypedBuilder)]
struct Foo {
    x: i8,
}

let _ = Foo::builder().build();

The functionality already worked as expected, it simply didn't seem to be covered by a test.

Signed-off-by: Markus Mayer <widemeadows@gmail.com>
@idanarye idanarye merged commit 4e59ac8 into idanarye:master Jun 15, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants