1 use thiserror::Error; 2 3 #[derive(Error, Debug)] 4 pub struct ErrorStruct { 5 #[source] 6 a: std::io::Error, 7 #[source] 8 b: anyhow::Error, 9 } 10 main()11 fn main() {} 12