You can do type erasure by converting your errors to Box<dyn Error>, then they have the same type and can be in the same enum variant
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can do type erasure by converting your errors to Box<dyn Error>, then they have the same type and can be in the same enum variant