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

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

fn main() {}