diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-05-06 18:26:20 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-05-06 18:26:20 +0200 |
| commit | 74b9232ee8001b6204a3c357a7793a6d152bd8ca (patch) | |
| tree | a08de248c5c09acbb5719da020a710557110f9b2 | |
| parent | eb881b486f7c71cea87fbcddf728c741e397a779 (diff) | |
| download | rust-74b9232ee8001b6204a3c357a7793a6d152bd8ca.tar.gz rust-74b9232ee8001b6204a3c357a7793a6d152bd8ca.zip | |
Fix assert_assignable for array types
Fixes #1226
| -rw-r--r-- | src/value_and_place.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/value_and_place.rs b/src/value_and_place.rs index 8f80b02ae0d..f8da18ee3e2 100644 --- a/src/value_and_place.rs +++ b/src/value_and_place.rs @@ -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, |
