We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cargo test
1 parent db0b7e4 commit 1f448e4Copy full SHA for 1f448e4
tests/test_diagnostic_source_macro.rs
@@ -75,6 +75,7 @@ fn test_diagnostic_source() {
75
assert!(error.diagnostic_source().is_some());
76
}
77
78
+#[cfg(feature = "fancy-no-backtrace")]
79
#[test]
80
fn test_diagnostic_source_pass_extra_info() {
81
let diag = TestBoxedError(Box::new(SourceError {
@@ -106,6 +107,7 @@ fn test_diagnostic_source_pass_extra_info() {
106
107
assert_eq!(expected, out);
108
109
110
111
112
fn test_diagnostic_source_is_output() {
113
let diag = TestStructError {
@@ -147,6 +149,7 @@ struct NestedError {
147
149
the_other_err: Box<dyn Diagnostic>,
148
150
151
152
153
154
fn test_nested_diagnostic_source_is_output() {
155
let inner_error = TestStructError {
0 commit comments