Using writefln causes a unittest to be pulled in from Phobos into user code. example: ------- import std.stdio; void main() { writefln("hello"); } -------- dmd -run -unittest app.d 1 unittests passed Phobos should not be inserting unittests into user's code. See related issue 20500
Oops, Rainer already fixed this: https://github.com/dlang/phobos/pull/7359