Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 816 Bytes

compiler-error-c3530.md

File metadata and controls

35 lines (26 loc) · 816 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3530
Compiler Error C3530
11/04/2016
C3530
C3530
21be81ce-b699-4c74-81bc-80a0c34d2d5a

Compiler Error C3530

'auto' cannot be combined with any other type-specifier

A type specifier is used with the auto keyword.

To correct this error

  1. Do not use a type specifier in a variable declaration that uses the auto keyword.

Example

The following example yields C3530 because variable x is declared with both the auto keyword and type int, and because the example is compiled with /Zc:auto.

// C3530.cpp
// Compile with /Zc:auto
int main()
{
   auto int x;   // C3530
   return 0;
}

See also

auto Keyword