Could you say more about why you want `impl Error`? I find that `impl From<anyhow::Error> for Box<dyn StdError + Send + Sync>` (zero cost) + `impl Deref<Target = dyn StdError + Send + Sync>` (also zero cost) accomplishes the same thing seamlessly in 100% of places I know of.
-
-
-
I've had methods and enum variants with `E: Error` bounds that blew up when I changed one of my error types to `Box<dyn Error>`.
- 3 more replies
New conversation -
-
-
This is a part of Rust that simply doesn’t work, and I don’t know how to fix it
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Could you do the thing that
@mgattozzi was talking about yesterday with the setting a default type? So `E: ErrorTrait = From<R: Error>`Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.