A reference always refers to an object, but an object cannot have the type void.
Thus, the type void is not allowed.