pub fn dyn_rc_err<T: Error + 'static>(err: T) -> Rc<dyn Error>
Wraps an error in a reference-counted, dynamically dispatched error.