if the callback is not @nogc, the function itself must not be @nogc, too.