@@ -4,7 +4,6 @@ error: expected `;` or `]`, found `,`
44LL | let b: [i32, 5];
55 | ^ expected `;` or `]`
66 |
7- = note: you might have meant to write a slice or array type
87help: you might have meant to use `;` as the separator
98 |
109LL - let b: [i32, 5];
@@ -19,16 +18,13 @@ LL | let a: [i32, ];
1918 | |
2019 | while parsing the type for `a`
2120 | help: use `=` if you meant to assign
22- |
23- = note: you might have meant to write a slice or array type
2421
2522error: expected `;` or `]`, found `,`
2623 --> $DIR/array-type-no-semi.rs:12:16
2724 |
2825LL | let c: [i32, x];
2926 | ^ expected `;` or `]`
3027 |
31- = note: you might have meant to write a slice or array type
3228help: you might have meant to use `;` as the separator
3329 |
3430LL - let c: [i32, x];
@@ -41,11 +37,22 @@ error: expected `;` or `]`, found `5`
4137LL | let e: [i32 5];
4238 | ^ expected `;` or `]`
4339 |
44- = note: you might have meant to write a slice or array type
4540help: you might have meant to use `;` as the separator
4641 |
47- LL | let e: [i32 ;5];
48- | +
42+ LL | let e: [i32; 5];
43+ | +
44+
45+ error: expected `;` or `]`, found `:`
46+ --> $DIR/array-type-no-semi.rs:17:16
47+ |
48+ LL | let f: [i32: 1 - 1];
49+ | ^ expected `;` or `]`
50+ |
51+ help: you might have meant to use `;` as the separator
52+ |
53+ LL - let f: [i32: 1 - 1];
54+ LL + let f: [i32; 1 - 1];
55+ |
4956
5057error[E0435]: attempt to use a non-constant value in a constant
5158 --> $DIR/array-type-no-semi.rs:12:18
@@ -65,7 +72,7 @@ error[E0423]: expected value, found builtin type `i32`
6572LL | let a: [i32, ];
6673 | ^^^ not a value
6774
68- error: aborting due to 6 previous errors
75+ error: aborting due to 7 previous errors
6976
7077Some errors have detailed explanations: E0423, E0435.
7178For more information about an error, try `rustc --explain E0423`.
0 commit comments