Skip to content

Commit 74b9232

Browse files
committed
Fix assert_assignable for array types
Fixes rust-lang#1226
1 parent eb881b4 commit 74b9232

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/value_and_place.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,9 @@ pub(crate) fn assert_assignable<'tcx>(
828828
}
829829
}
830830
}
831+
(ty::Array(a, _), ty::Array(b, _)) => {
832+
assert_assignable(fx, *a, *b)
833+
}
831834
_ => {
832835
assert_eq!(
833836
from_ty, to_ty,

0 commit comments

Comments
 (0)