1 2 3 4 5 6 7 8
use api_error::ApiError; #[derive(Debug, thiserror::Error, ApiError)] union MyError { field: i32, } fn main() {}