|  | 
| 1 |  | -error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` | 
|  | 1 | +error: expected `;` or `]`, found `,` | 
| 2 | 2 |   --> $DIR/array-type-no-semi.rs:7:16 | 
| 3 | 3 |    | | 
| 4 | 4 | LL |     let b: [i32, 5]; | 
| 5 |  | -   |          -     ^ expected one of 7 possible tokens | 
| 6 |  | -   |          | | 
| 7 |  | -   |          while parsing the type for `b` | 
| 8 |  | -   |          help: use `=` if you meant to assign | 
|  | 5 | +   |                ^ expected `;` or `]` | 
|  | 6 | +   | | 
|  | 7 | +   = note: you might have meant to write a slice or array type | 
|  | 8 | +help: you might have meant to use `;` as the separator | 
|  | 9 | +   | | 
|  | 10 | +LL -     let b: [i32, 5]; | 
|  | 11 | +LL +     let b: [i32; 5]; | 
|  | 12 | +   | | 
| 9 | 13 | 
 | 
| 10 |  | -error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` | 
| 11 |  | -  --> $DIR/array-type-no-semi.rs:10:16 | 
|  | 14 | +error: expected `;` or `]`, found `,` | 
|  | 15 | +  --> $DIR/array-type-no-semi.rs:9:16 | 
| 12 | 16 |    | | 
| 13 | 17 | LL |     let a: [i32, ]; | 
| 14 |  | -   |          -     ^ expected one of 7 possible tokens | 
|  | 18 | +   |          -     ^ expected `;` or `]` | 
| 15 | 19 |    |          | | 
| 16 | 20 |    |          while parsing the type for `a` | 
| 17 | 21 |    |          help: use `=` if you meant to assign | 
|  | 22 | +   | | 
|  | 23 | +   = note: you might have meant to write a slice or array type | 
| 18 | 24 | 
 | 
| 19 |  | -error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` | 
| 20 |  | -  --> $DIR/array-type-no-semi.rs:13:16 | 
|  | 25 | +error: expected `;` or `]`, found `,` | 
|  | 26 | +  --> $DIR/array-type-no-semi.rs:12:16 | 
| 21 | 27 |    | | 
| 22 | 28 | LL |     let c: [i32, x]; | 
| 23 |  | -   |          -     ^ expected one of 7 possible tokens | 
| 24 |  | -   |          | | 
| 25 |  | -   |          while parsing the type for `c` | 
| 26 |  | -   |          help: use `=` if you meant to assign | 
|  | 29 | +   |                ^ expected `;` or `]` | 
|  | 30 | +   | | 
|  | 31 | +   = note: you might have meant to write a slice or array type | 
|  | 32 | +help: you might have meant to use `;` as the separator | 
|  | 33 | +   | | 
|  | 34 | +LL -     let c: [i32, x]; | 
|  | 35 | +LL +     let c: [i32; x]; | 
|  | 36 | +   | | 
| 27 | 37 | 
 | 
| 28 |  | -error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `5` | 
| 29 |  | -  --> $DIR/array-type-no-semi.rs:16:17 | 
|  | 38 | +error: expected `;` or `]`, found `5` | 
|  | 39 | +  --> $DIR/array-type-no-semi.rs:15:17 | 
| 30 | 40 |    | | 
| 31 | 41 | LL |     let e: [i32 5]; | 
| 32 |  | -   |          -      ^ expected one of 7 possible tokens | 
| 33 |  | -   |          | | 
| 34 |  | -   |          while parsing the type for `e` | 
| 35 |  | - | 
| 36 |  | -error[E0423]: expected value, found builtin type `i32` | 
| 37 |  | -  --> $DIR/array-type-no-semi.rs:7:13 | 
|  | 42 | +   |                 ^ expected `;` or `]` | 
| 38 | 43 |    | | 
| 39 |  | -LL |     let b: [i32, 5]; | 
| 40 |  | -   |             ^^^ not a value | 
|  | 44 | +   = note: you might have meant to write a slice or array type | 
|  | 45 | +help: you might have meant to use `;` as the separator | 
|  | 46 | +   | | 
|  | 47 | +LL |     let e: [i32 ;5]; | 
|  | 48 | +   |                 + | 
| 41 | 49 | 
 | 
| 42 |  | -error[E0423]: expected value, found builtin type `i32` | 
| 43 |  | -  --> $DIR/array-type-no-semi.rs:10:13 | 
|  | 50 | +error[E0435]: attempt to use a non-constant value in a constant | 
|  | 51 | +  --> $DIR/array-type-no-semi.rs:12:18 | 
|  | 52 | +   | | 
|  | 53 | +LL |     let c: [i32, x]; | 
|  | 54 | +   |                  ^ non-constant value | 
|  | 55 | +   | | 
|  | 56 | +help: consider using `const` instead of `let` | 
|  | 57 | +   | | 
|  | 58 | +LL -     let x = 5; | 
|  | 59 | +LL +     const x: /* Type */ = 5; | 
| 44 | 60 |    | | 
| 45 |  | -LL |     let a: [i32, ]; | 
| 46 |  | -   |             ^^^ not a value | 
| 47 | 61 | 
 | 
| 48 | 62 | error[E0423]: expected value, found builtin type `i32` | 
| 49 |  | -  --> $DIR/array-type-no-semi.rs:13:13 | 
|  | 63 | +  --> $DIR/array-type-no-semi.rs:9:13 | 
| 50 | 64 |    | | 
| 51 |  | -LL |     let c: [i32, x]; | 
|  | 65 | +LL |     let a: [i32, ]; | 
| 52 | 66 |    |             ^^^ not a value | 
| 53 | 67 | 
 | 
| 54 |  | -error: aborting due to 7 previous errors | 
|  | 68 | +error: aborting due to 6 previous errors | 
| 55 | 69 | 
 | 
| 56 |  | -For more information about this error, try `rustc --explain E0423`. | 
|  | 70 | +Some errors have detailed explanations: E0423, E0435. | 
|  | 71 | +For more information about an error, try `rustc --explain E0423`. | 
0 commit comments