|
| 1 | +error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` |
| 2 | + --> $DIR/array-type-no-semi.rs:7:16 |
| 3 | + | |
| 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 |
| 9 | + |
| 10 | +error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` |
| 11 | + --> $DIR/array-type-no-semi.rs:10:16 |
| 12 | + | |
| 13 | +LL | let a: [i32, ]; |
| 14 | + | - ^ expected one of 7 possible tokens |
| 15 | + | | |
| 16 | + | while parsing the type for `a` |
| 17 | + | help: use `=` if you meant to assign |
| 18 | + |
| 19 | +error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` |
| 20 | + --> $DIR/array-type-no-semi.rs:13:16 |
| 21 | + | |
| 22 | +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 |
| 27 | + |
| 28 | +error[E0423]: expected value, found builtin type `i32` |
| 29 | + --> $DIR/array-type-no-semi.rs:7:13 |
| 30 | + | |
| 31 | +LL | let b: [i32, 5]; |
| 32 | + | ^^^ not a value |
| 33 | + |
| 34 | +error[E0423]: expected value, found builtin type `i32` |
| 35 | + --> $DIR/array-type-no-semi.rs:10:13 |
| 36 | + | |
| 37 | +LL | let a: [i32, ]; |
| 38 | + | ^^^ not a value |
| 39 | + |
| 40 | +error[E0423]: expected value, found builtin type `i32` |
| 41 | + --> $DIR/array-type-no-semi.rs:13:13 |
| 42 | + | |
| 43 | +LL | let c: [i32, x]; |
| 44 | + | ^^^ not a value |
| 45 | + |
| 46 | +error: aborting due to 6 previous errors |
| 47 | + |
| 48 | +For more information about this error, try `rustc --explain E0423`. |
0 commit comments