TL;DR: Test case for formatter.d:
testFormatNode!(AssertExpression)("static assert(() @trusted { return bar()(3); }() == 4);");
Was trying to update libdparse for dlang.org (dlang/dlang.org#2758) and hit this bug.
The code:
assert(() @trusted { return bar()(3); }() == 4);
from here is turned into:
assert (() @trusteddo
{ return bar()(3);
}() == 4)
by formatter, which is obviously invalid.