Lifetime pode não viver o suficiente

fn returns_a_closure(&self,io: IO) -> Box<(dyn Fn() -> u64 + 'static)> {}

convert to:

fn returns_a_closure(&self,io: IO) -> Box<(dyn Fn() -> u64 + '_)> {}
ArmanRiazi