A good example is given by core.time itself. Consider. import core.time; static this() { auto t = TickDuration.from!"msecs"(100); } void main(){} This code aborts with a division by zero error. Apparently the call to the static method TickDuration.from is allowed without the @trusted shared static this() being called.
https://github.com/D-Programming-Language/dmd/commit/42fea4c1f2beb5fa1a83c5cbb8a163d88d3ac3ad