Skip to content

Commit 2a8605c

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C3531, C3620]
1 parent 11b48f7 commit 2a8605c

25 files changed

+69
-3
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c3531.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 2bdb9fdc-9ddf-403e-8b92-02763d434487
1010

1111
> 'symbol': a symbol whose type contains 'auto' must have an initializer
1212
13+
## Remarks
14+
1315
The specified variable does not have an initializer expression.
1416

1517
### To correct this error

docs/error-messages/compiler-errors-2/compiler-error-c3532.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 51067853-eda8-4f59-86e8-8924e16d3a95
1010

1111
> 'type': incorrect usage of 'auto'
1212
13+
## Remarks
14+
1315
The indicated type cannot be declared with the **`auto`** keyword. For example, you cannot use the **`auto`** keyword to declare an array or a method return type.
1416

1517
### To correct this error

docs/error-messages/compiler-errors-2/compiler-error-c3533.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: a68b1ba5-466e-4190-a1a4-505ccfe548b7
1010

1111
> 'type': a parameter cannot have a type that contains 'auto'
1212
13+
## Remarks
14+
1315
A method or template parameter cannot be declared with the **`auto`** keyword if the default [/Zc:auto](../../build/reference/zc-auto-deduce-variable-type.md) compiler option is in effect.
1416

1517
### To correct this error

docs/error-messages/compiler-errors-2/compiler-error-c3535.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 24449c98-f681-484d-a00b-32533dca3a88
1010

1111
> cannot deduce type for 'type1' from 'type2'
1212
13+
## Remarks
14+
1315
The type of the variable declared by the **`auto`** keyword cannot be deduced from the type of the initialization expression. For example, this error occurs if the initialization expression evaluates to **`void`**, which is not a type.
1416

1517
### To correct this error

docs/error-messages/compiler-errors-2/compiler-error-c3536.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ helpviewer_keywords: ["C3536"]
99

1010
> 'symbol': cannot be used before it is initialized
1111
12+
## Remarks
13+
1214
The indicated symbol cannot be used before it is initialized. In practice, this means that a variable cannot be used to initialize itself.
1315

1416
### To correct this error

docs/error-messages/compiler-errors-2/compiler-error-c3537.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: f537ebd1-4fb0-4e09-a453-4f38db2c6881
1010

1111
> 'type': you cannot cast to a type that contains 'auto'
1212
13+
## Remarks
14+
1315
You cannot cast a variable to the indicated type because the type contains the **`auto`** keyword and the default [/Zc:auto](../../build/reference/zc-auto-deduce-variable-type.md) compiler option is in effect.
1416

1517
## Example

docs/error-messages/compiler-errors-2/compiler-error-c3538.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: ef3698a5-7356-4c62-b9af-5d3a4baed958
1010

1111
> in a declarator-list 'auto' must always deduce to the same type
1212
13+
## Remarks
14+
1315
All the declared variables in a declaration list do not resolve to the same type.
1416

1517
### To correct this error

docs/error-messages/compiler-errors-2/compiler-error-c3539.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 34a33a0f-d1b6-498f-b312-ffad2d4799b3
1010

1111
> 'type': a template-argument cannot be a type that contains 'auto'
1212
13+
## Remarks
14+
1315
The indicated template argument type cannot contain a usage of the **`auto`** keyword.
1416

1517
### To correct this error

docs/error-messages/compiler-errors-2/compiler-error-c3540.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 3c0c959c-e3b7-40eb-b922-ccac44bd9d85
1010

1111
> 'type': sizeof cannot be applied to a type that contains 'auto'
1212
13+
## Remarks
14+
1315
The [sizeof](../../cpp/sizeof-operator.md) operator cannot be applied to the indicated type because it contains the **`auto`** specifier.
1416

1517
## Example

docs/error-messages/compiler-errors-2/compiler-error-c3541.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 252cfd4c-5fd2-415e-a17d-6b0c254350db
1010

1111
> 'type': typeid cannot be applied to a type that contains 'auto'
1212
13+
## Remarks
14+
1315
The [typeid](../../extensions/typeid-cpp-component-extensions.md) operator cannot be applied to the indicated type because it contains the **`auto`** specifier.
1416

1517
## Example

0 commit comments

Comments
 (0)