1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[cfg(feature = "std")] mod std { use ::std::boxed::Box; use core::error::Error; use crate::ExceedsCapacity; #[test] fn test_error() { let _: Box<dyn Error> = Box::new(ExceedsCapacity { length: 16, capacity: 8, }); } }