diff --git a/frontend/exporter/src/types/mir.rs b/frontend/exporter/src/types/mir.rs index a4d7476bb..99c3c042f 100644 --- a/frontend/exporter/src/types/mir.rs +++ b/frontend/exporter/src/types/mir.rs @@ -762,7 +762,8 @@ impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto min_length, from_end, } => { - let TyKind::Slice(ty) = current_ty.kind() else { + let (TyKind::Slice(ty) | TyKind::Array(ty, _)) = current_ty.kind() + else { supposely_unreachable_fatal!( s, "PlaceConstantIndexNotSlice"; {current_ty, current_kind, elem}