Implementing Error::source using internally stored dyn Error + Send

Thanks! I had just been linked to a duplicate of this thread at Question about Error::source’s 'static return type :slight_smile:

It would be cool if the error message hinted at this, because it definitely did not occur to me to use an as cast.

1 Like