https://issues.dlang.org/show_bug.cgi?id=8471
--- Comment #5 from Andrei Alexandrescu <and...@erdani.com> --- (In reply to Jakub Łabaj from comment #4) > According to Steven's blog post > (http://dlang.org/blog/2016/09/28/how-to-write-trusted-code-in-d/) I should > "never use @trusted on template functions that accept arbitrary types". Is > the readf case special in this regard? If readf calls user-defined functions (constructor, assignment) then yes that's a problem. The smoking gun would be an unsafe unittest that passes with the current implementation. Can you write one? --