{"ast_node_type":"function","tokens":[{"end":52,"kind":"keyword","start":0,"text":"fn"}]}
fn check_enum(tcx: TyCtxt<'_>, def_id: LocalDefId) {
#[allow(trivial_numeric_casts)]
    let def = tcx.adt_def(def_id);