diff options
Diffstat (limited to 'vendor/darling-0.14.4/tests/compile-fail/skip_field_not_impl_default.stderr')
-rw-r--r-- | vendor/darling-0.14.4/tests/compile-fail/skip_field_not_impl_default.stderr | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/darling-0.14.4/tests/compile-fail/skip_field_not_impl_default.stderr b/vendor/darling-0.14.4/tests/compile-fail/skip_field_not_impl_default.stderr new file mode 100644 index 000000000..de46982c2 --- /dev/null +++ b/vendor/darling-0.14.4/tests/compile-fail/skip_field_not_impl_default.stderr @@ -0,0 +1,21 @@ +error[E0277]: the trait bound `NoDefault: std::default::Default` is not satisfied + --> tests/compile-fail/skip_field_not_impl_default.rs:8:15 + | +8 | #[darling(skip)] + | ^^^^ the trait `std::default::Default` is not implemented for `NoDefault` + | +help: consider annotating `NoDefault` with `#[derive(Default)]` + | +4 | #[derive(Default)] + | + +error[E0277]: the trait bound `NoDefault: std::default::Default` is not satisfied + --> tests/compile-fail/skip_field_not_impl_default.rs:11:22 + | +11 | #[darling(skip = true)] + | ^^^^ the trait `std::default::Default` is not implemented for `NoDefault` + | +help: consider annotating `NoDefault` with `#[derive(Default)]` + | +4 | #[derive(Default)] + | |