编译器错误 C2120

对于所有类型“void”非法

注解

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

示例:

以下示例生成 C2120:

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