|
| 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: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `5` |
| 29 | + --> $DIR/array-type-no-semi.rs:16:17 |
| 30 | + | |
| 31 | +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 |
| 38 | + | |
| 39 | +LL | let b: [i32, 5]; |
| 40 | + | ^^^ not a value |
| 41 | + |
| 42 | +error[E0423]: expected value, found builtin type `i32` |
| 43 | + --> $DIR/array-type-no-semi.rs:10:13 |
| 44 | + | |
| 45 | +LL | let a: [i32, ]; |
| 46 | + | ^^^ not a value |
| 47 | + |
| 48 | +error[E0423]: expected value, found builtin type `i32` |
| 49 | + --> $DIR/array-type-no-semi.rs:13:13 |
| 50 | + | |
| 51 | +LL | let c: [i32, x]; |
| 52 | + | ^^^ not a value |
| 53 | + |
| 54 | +error: aborting due to 7 previous errors |
| 55 | + |
| 56 | +For more information about this error, try `rustc --explain E0423`. |
0 commit comments