Hacker News new | ask | show | jobs
by rascul 641 days ago
Many error types implement std::error::Error, maybe using that would make things easier.

An example: https://play.rust-lang.org/?version=stable&mode=debug&editio...

1 comments

Hmm, I think I tried this a few times, but I could never get the right magical combination of dyn, Box<> and & to get it to compile.