diff options
Diffstat (limited to 'third_party/rust/thiserror/tests/ui/from-backtrace-backtrace.rs')
-rw-r--r-- | third_party/rust/thiserror/tests/ui/from-backtrace-backtrace.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/rust/thiserror/tests/ui/from-backtrace-backtrace.rs b/third_party/rust/thiserror/tests/ui/from-backtrace-backtrace.rs new file mode 100644 index 0000000000..8f411bf5d8 --- /dev/null +++ b/third_party/rust/thiserror/tests/ui/from-backtrace-backtrace.rs @@ -0,0 +1,10 @@ +// https://github.com/dtolnay/thiserror/issues/163 + +use std::backtrace::Backtrace; +use thiserror::Error; + +#[derive(Error, Debug)] +#[error("...")] +pub struct Error(#[from] #[backtrace] std::io::Error, Backtrace); + +fn main() {} |