pub trait Flag: Default { // Required method fn increment(&mut self); }
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".