Why does Error::downcast<E> and Error::is<E> require E: Debug
Open
- Dominant language
- Rust
- Stars
- 6.7k
- Forks
- 224
- PR merge metrics
- No merged PRs in 30d
Description
You can use a type which only implements Display as context for an Error. But then you cant take that Error and downcast it to that type. The downcast\, downcast_ref\, downcast_mut\ and is\ have a requirement that E: Debug but I dont see a reason why it would be needed.
Here is an example:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=f862ec4d05048736f45741370f192680
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.