The following code snippet compiles successfully WITHOUT DIP1000 enabled: void main(string[] args) @safe @nogc { scope f = () { auto a = args; }; } But compiling the same code WITH DIP100 enabled, the following compile error occurs: main.d(1): Error: function `D main` is @nogc yet allocates closures with the GC main.d(3): main.main.__lambda2 closes over variable args at main.d(1)
Has been fixed in 2.092.1.