fn check_struct(tcx: TyCtxt<'_>, def_id: LocalDefId)