use thiserror_nostd_notrait::Error; #[derive(Error)] pub union U { msg: &'static str, num: usize, } fn main() {}