Add some regression tests for opaque types and const generics

This commit is contained in:
Oli Scherer 2024-02-21 14:59:43 +00:00
parent ba316a902d
commit 8e226e092e
6 changed files with 174 additions and 2 deletions

View file

@ -982,7 +982,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
ty::PredicateKind::Ambiguous => Ok(EvaluatedToAmbig),
ty::PredicateKind::Clause(ty::ClauseKind::ConstArgHasType(ct, ty)) => {
match self.infcx.at(&obligation.cause, obligation.param_env).eq(
DefineOpaqueTypes::No,
// Only really excercised by generic_const_exprs
DefineOpaqueTypes::Yes,
ct.ty(),
ty,
) {