1 use thiserror::Error; 2 3 #[derive(Error)] 4 pub union U { 5 msg: &'static str, 6 num: usize, 7 } 8 main()9 fn main() {} 10