summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/do-not-suggest-semicolon-before-array.rs
blob: 7ebf3f6b0d89981c4a2f5fb6c1c726473c18b2f5 (plain)
1
2
3
4
5
6
7
8
fn foo() {}

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

fn main() {}