impl Error for Box lacks source() impl #61899
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
the
Error
impl ofBox<T: Error>
does not include thesource
function, however it containscause
, causing different results when switching fromcause
tosource
.A small code that demonstrates this is here.
Solution: implement source() for
Box<T: Error>
by forwarding toT::source()
The text was updated successfully, but these errors were encountered: