rust/tests/ui/parser/do-not-suggest-semicolon-before-array.rs

8 lines
111 B
Rust

fn foo() {}
fn bar() -> [u8; 2] {
foo()
[1, 3) //~ ERROR mismatched closing delimiter
}
fn main() {}