diff --git a/tests/test_backtrace.rs b/tests/test_backtrace.rs index 8f11da3..2a4cffa 100644 --- a/tests/test_backtrace.rs +++ b/tests/test_backtrace.rs @@ -21,6 +21,11 @@ pub mod structs { use std::sync::Arc; use thiserror::Error; + mod not_backtrace { + #[derive(Debug)] + pub struct Backtrace; + } + #[derive(Error, Debug)] #[error("...")] pub struct PlainBacktrace { @@ -34,6 +39,12 @@ pub mod structs { backtrace: Backtrace, } + #[derive(Error, Debug)] + #[error("...")] + pub struct NotBacktrace { + backtrace: crate::structs::not_backtrace::r#Backtrace, + } + #[derive(Error, Debug)] #[error("...")] pub struct OptBacktrace {