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