diff --git a/std/array.d b/std/array.d index 67d76e2dcf8..bab81c686e8 100644 --- a/std/array.d +++ b/std/array.d @@ -650,7 +650,8 @@ if (isInputRange!Values && isInputRange!Keys) alias ValueElement = ElementType!Values; static if (hasElaborateDestructor!ValueElement) ValueElement.init.__xdtor(); - cast(void) values.front; + + aa[key] = values.front; }))) { () @trusted {