diff --git a/crates/tinyxml2/src/error.rs b/crates/tinyxml2/src/error.rs index a52e08c..4538e4d 100644 --- a/crates/tinyxml2/src/error.rs +++ b/crates/tinyxml2/src/error.rs @@ -480,6 +480,15 @@ mod tests { assert_eq!(err, cloned); } + #[test] + #[cfg(feature = "std")] + fn xml_error_as_box_dyn_error() { + let err = XmlError::NoAttribute; + let boxed: Box = Box::new(err); + let _display = boxed.to_string(); + let _source = boxed.source(); + } + #[test] #[cfg(feature = "std")] fn std_error_source() {