rust/tests/ui/parser/do-not-suggest-semicolon-before-array.rs
2023-01-11 09:32:08 +00:00

9 lines
139 B
Rust

fn foo() {}
fn bar() -> [u8; 2] {
foo()
[1, 3) //~ ERROR expected one of `.`, `?`, `]`, or an operator, found `,`
}
fn main() {}