|  | 
| 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 | 
|  | 5 | +   |          -     ^ expected `;` or `]` | 
| 6 | 6 |    |          | | 
| 7 | 7 |    |          while parsing the type for `b` | 
| 8 |  | -   |          help: use `=` if you meant to assign | 
|  | 8 | +   | | 
|  | 9 | +   = note: you might need a array type or a slice type | 
|  | 10 | +help: you might have meant to use `;` as the separator | 
|  | 11 | +   | | 
|  | 12 | +LL -     let b: [i32, 5]; | 
|  | 13 | +LL +     let b: [i32; 5]; | 
|  | 14 | +   | | 
|  | 15 | +help: use `=` if you meant to assign | 
|  | 16 | +   | | 
|  | 17 | +LL -     let b: [i32, 5]; | 
|  | 18 | +LL +     let b = [i32, 5]; | 
|  | 19 | +   | | 
| 9 | 20 | 
 | 
| 10 |  | -error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` | 
|  | 21 | +error: expected `;` or `]`, found `,` | 
| 11 | 22 |   --> $DIR/array-type-no-semi.rs:10:16 | 
| 12 | 23 |    | | 
| 13 | 24 | LL |     let a: [i32, ]; | 
| 14 |  | -   |          -     ^ expected one of 7 possible tokens | 
|  | 25 | +   |          -     ^ expected `;` or `]` | 
| 15 | 26 |    |          | | 
| 16 | 27 |    |          while parsing the type for `a` | 
| 17 | 28 |    |          help: use `=` if you meant to assign | 
|  | 29 | +   | | 
|  | 30 | +   = note: you might need a array type or a slice type | 
| 18 | 31 | 
 | 
| 19 |  | -error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` | 
|  | 32 | +error: expected `;` or `]`, found `,` | 
| 20 | 33 |   --> $DIR/array-type-no-semi.rs:13:16 | 
| 21 | 34 |    | | 
| 22 | 35 | LL |     let c: [i32, x]; | 
| 23 |  | -   |          -     ^ expected one of 7 possible tokens | 
|  | 36 | +   |          -     ^ expected `;` or `]` | 
| 24 | 37 |    |          | | 
| 25 | 38 |    |          while parsing the type for `c` | 
| 26 |  | -   |          help: use `=` if you meant to assign | 
|  | 39 | +   | | 
|  | 40 | +   = note: you might need a array type or a slice type | 
|  | 41 | +help: you might have meant to use `;` as the separator | 
|  | 42 | +   | | 
|  | 43 | +LL -     let c: [i32, x]; | 
|  | 44 | +LL +     let c: [i32; x]; | 
|  | 45 | +   | | 
|  | 46 | +help: use `=` if you meant to assign | 
|  | 47 | +   | | 
|  | 48 | +LL -     let c: [i32, x]; | 
|  | 49 | +LL +     let c = [i32, x]; | 
|  | 50 | +   | | 
| 27 | 51 | 
 | 
| 28 | 52 | error[E0423]: expected value, found builtin type `i32` | 
| 29 | 53 |   --> $DIR/array-type-no-semi.rs:7:13 | 
|  | 
0 commit comments