1 error: this is a block expression, not an array
2 --> $DIR/issue-87830-try-brackets-for-arrays.rs:3:22
4 LL | const FOO: [u8; 3] = {
5 | ______________________^
11 help: to make an array, use square brackets instead of curly braces
13 LL ~ const FOO: [u8; 3] = [
19 error: this is a block expression, not an array
20 --> $DIR/issue-87830-try-brackets-for-arrays.rs:8:24
22 LL | const BAR: [&str; 3] = {"one", "two", "three"};
23 | ^^^^^^^^^^^^^^^^^^^^^^^
25 help: to make an array, use square brackets instead of curly braces
27 LL | const BAR: [&str; 3] = ["one", "two", "three"];
30 error: this is a block expression, not an array
31 --> $DIR/issue-87830-try-brackets-for-arrays.rs:12:5
36 help: to make an array, use square brackets instead of curly braces
41 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
42 --> $DIR/issue-87830-try-brackets-for-arrays.rs:17:6
45 | ^ expected one of `.`, `;`, `?`, `}`, or an operator
47 error: aborting due to 4 previous errors