Error reporting for type mismatches involving opaques

This commit is contained in:
ayazhafiz 2022-02-24 00:48:19 -05:00
parent 822e38d026
commit 059c324268
20 changed files with 526 additions and 149 deletions

View file

@ -956,9 +956,9 @@ pub fn constrain_expr(
// variables of the opaque type
// TODO: better expectation here
let link_type_variables_con = Eq(
(**specialized_def_type).clone(),
Expected::NoExpectation(arg_type),
Category::OpaqueWrap(*name),
arg_type,
Expected::NoExpectation((**specialized_def_type).clone()),
Category::OpaqueArg,
arg_loc_expr.region,
);