diff options
Diffstat (limited to 'vendor/darling-0.14.4/tests/compile-fail/not_impl_from_meta.rs')
-rw-r--r-- | vendor/darling-0.14.4/tests/compile-fail/not_impl_from_meta.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/darling-0.14.4/tests/compile-fail/not_impl_from_meta.rs b/vendor/darling-0.14.4/tests/compile-fail/not_impl_from_meta.rs new file mode 100644 index 000000000..f27d71639 --- /dev/null +++ b/vendor/darling-0.14.4/tests/compile-fail/not_impl_from_meta.rs @@ -0,0 +1,16 @@ +use darling::FromMeta; + +struct NotImplFm; + +#[derive(FromMeta)] +struct OuterFm { + inner: NotImplFm, +} + +#[derive(darling::FromDeriveInput)] +#[darling(attributes(hello))] +struct OuterFdi { + inner: NotImplFm, +} + +fn main() {} |