blob: 070ffaa1eff00fb2bc0116b39df25924ca49070a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
fn main() {}
const FOO: [u8; 3] = {
//~^ ERROR this is a block expression, not an array
1, 2, 3
};
const BAR: [&str; 3] = {"one", "two", "three"};
//~^ ERROR this is a block expression, not an array
fn foo() {
{1, 2, 3};
//~^ ERROR this is a block expression, not an array
}
fn bar() {
1, 2, 3 //~ ERROR expected one of
}
|