feat: resolve const for trait impls(close #13694)

This commit is contained in:
bvanjoi 2022-12-05 09:53:11 +08:00
parent a2beeb8dbb
commit 7012b50db5
6 changed files with 245 additions and 18 deletions

View file

@ -351,6 +351,7 @@ pub fn eval_const(
.infer
.assoc_resolutions_for_expr(expr_id)
.ok_or(ConstEvalError::SemanticError("unresolved assoc item"))?
.0
{
hir_def::AssocItemId::FunctionId(_) => {
Err(ConstEvalError::NotSupported("assoc function"))