Debian Codegraph @

.cargo/vendor/thiserror-1.0.59/tests/ui/from-backtrace-backtrace.rs

raw
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
15 fn main() {}