Fix assert_assignable for array types

Fixes #1226
This commit is contained in:
bjorn3 2022-05-06 18:26:20 +02:00
parent eb881b486f
commit 74b9232ee8

View File

@ -828,6 +828,9 @@ pub(crate) fn assert_assignable<'tcx>(
}
}
}
(ty::Array(a, _), ty::Array(b, _)) => {
assert_assignable(fx, *a, *b)
}
_ => {
assert_eq!(
from_ty, to_ty,