Fine in Hubei now.
Why boxed? just change to vec::<&dyn animal> and push reference of Dog to vec ,it should work. Isnot &dyn animal trait object?
Fine in Hubei now.
Why boxed? just change to vec::<&dyn animal> and push reference of Dog to vec ,it should work. Isnot &dyn animal trait object?