fn get_trait_ref<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>
) -> PolyExistentialTraitRef<'tcx>