diff --git a/std/format.d b/std/format.d index 73390584f15..27678d06b6d 100644 --- a/std/format.d +++ b/std/format.d @@ -451,7 +451,7 @@ uint formattedWrite(Writer, Char, A...)(Writer w, in Char[] fmt, A args) { import std.conv : text, to; - alias FPfmt = void function(Writer, const(void)*, ref FormatSpec!Char) @safe pure nothrow; + alias FPfmt = void function(Writer, scope const(void)*, ref FormatSpec!Char) @safe pure nothrow; auto spec = FormatSpec!Char(fmt);