The offending line: > return cast(immutable(E)[])array[0 .. offset]; ldc2 says: Error: cast from `char[]` to `string` not allowed in safe code
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10545 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB