I think the __traits thing was a half-completed pull request. Or a complete one that got half-reverted. In any case it was a mistake to put it in the docs, since it isn't in the dmd source code.