pub trait Task: Async { // Required method fn run(self) -> impl Future<Output = ()> + Send; }
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".