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

9 lines
111 B
Rust
Raw Normal View History

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