编译器错误 C2120

对于所有类型“void”非法

在包含其他类型的声明中使用了 void 类型。

以下示例将生成 C2120:

// C2120.cpp
int main() {
   void int i;   // C2120
   int j;   // OK
}