Another one in @safe series. This fails bacause moveAll is @system: import std.algorithm; @safe void f() { int[] a = [1,2,3]; int[] b = new int[3]; moveAll(a, b); assert(a == b); }
The provided code compiles and runs without error as of v2.065.