1 // https://github.com/dtolnay/thiserror/issues/163 2 3 use std::backtrace::Backtrace; 4 use thiserror::Error; 5 6 #[derive(Error, Debug)] 7 #[error("...")] 8 pub struct Error(#[from] #[backtrace] std::io::Error, Backtrace); 9 main()10 fn main() {} 11