                                err!(int: "{} is not a number", int);
                                return quote!();
                            }
                        }
                    } else {
                        err!(expr_lit: "Enum variant must be an integer.");
                        return quote!();
                    }
                }