Open norru opened 8 years ago
enum_from_primitive! { custom_derive! { #[derive(Debug, Eq, PartialEq, Hash, Copy, Clone, IterVariants(AgentTypeVariants))] pub enum AgentType { Minion , Spore, Player, FriendlyBullet, Enemy, EnemyBullet, Resource, Prop, } } }
fails with
src/backend/world/mod.rs:21:1: 21:14 error: no rules expected the token `custom_derive` src/backend/world/mod.rs:21 custom_derive! {
fwiw, https://crates.io/crates/enum-primitive-derive should work in that case a bit better.
fails with