https://dlang.org/spec/grammar.html shows in "3.4 Types"
BasicType:
Traits
but the link on Traits does not work because there is no grammar rule with Traits on the left-hand side.
Consider removing Traits in https://github.com/dlang/dlang.org/blob/master/spec/type.dd
(TraitsExpression is used in "3.7 Expressions" and defined in "3.17 Traits". No idea, what a Traits type should be.)
Comment #1 by b2.temp — 2021-04-26T08:36:01Z
No, it must not be removed but the link must be fixed.
TypeTrait exists internally (search Ttrait).
The principle is analogous to QualifiedIdentifier. Just like them, __traits() resolves to something that is a Type or not. And depending on that it is rejected or not during the semantic passes.