#[derive("Error")] enum A {} // This derive should fail (and produce a wrong spanned error) #[derive("Error")] mod B {}