{"ast_node_type":"other","tokens":[{"end":66,"kind":"keyword","start":0,"text":"ty::UpvarCapture::ByValue"}]}
        ty::UpvarCapture::ByValue | ty::UpvarCapture::ByUse => ty,
    match capture_kind {
        ty::UpvarCapture::ByRef(kind) => Ty::new_ref(tcx, region, ty, kind.to_mutbl_lossy()),