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( 9 #[from] 10 #[backtrace] 11 std::io::Error, 12 Backtrace, 13 ); 14 main()15 fn main() {} 16