| //! In case of bad input, parsing should fail. The error should have locations set in derived implementations. |
| use darling::FromDeriveInput; |
| #[derive(Debug, FromMeta)] |
| #[darling(rename = "amet")] |
| #[derive(Debug, FromDeriveInput)] |
| #[darling(from_ident, attributes(hello))] |
| impl From<syn::Ident> for Lorem { |
| fn from(ident: syn::Ident) -> Self { |
| #[hello(ipsum(amet = "yes", world = false))] |
| println!("{}", Lorem::from_derive_input(&di).unwrap_err()); |
| #[hello(ipsum(amet = true))] |
| println!("{}", Lorem::from_derive_input(&di).unwrap_err()); |