1 error: this code is interpreted as a block expression, not an array
2 --> $DIR/issue-87830-try-brackets-for-arrays.rs:3:22
4 LL | const FOO: [u8; 3] = {
5 | ______________________^
10 = note: to define an array, one would use square brackets instead of curly braces
11 help: try using [] instead of {}
13 LL ~ const FOO: [u8; 3] = [
18 error: this code is interpreted as a block expression, not an array
19 --> $DIR/issue-87830-try-brackets-for-arrays.rs:7:24
21 LL | const BAR: [&str; 3] = {"one", "two", "three"};
22 | ^^^^^^^^^^^^^^^^^^^^^^^
24 = note: to define an array, one would use square brackets instead of curly braces
25 help: try using [] instead of {}
27 LL | const BAR: [&str; 3] = ["one", "two", "three"];
30 error: this code is interpreted as a block expression, not an array
31 --> $DIR/issue-87830-try-brackets-for-arrays.rs:11:5
36 = note: to define an array, one would use square brackets instead of curly braces
37 help: try using [] instead of {}
42 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
43 --> $DIR/issue-87830-try-brackets-for-arrays.rs:16:6
46 | ^ expected one of `.`, `;`, `?`, `}`, or an operator
48 error: aborting due to 4 previous errors