I have a piece of code that does not compile and that can be reduced to this snippet:
use std::error::Error; use std
I'm still not sure why, but it seems just removing the 'static bound on the error worked?
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d4f46a0ad9a5dd7dc538fe4e197d823d