#![allow(unused_variables)] fn main() { use std::error::Error; let a_str_error = "a str error"; let a_boxed_error = Box::::from(a_str_error); assert!( size_of::< Box < dyn Error + Send + Sync >> () == size_of_val(& a_boxed_error) ) }