summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/suggest-semicolon-before-array.fixed
blob: a06b58b2740fa2175a46e02d205df1f323e3807c (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix
#![allow(dead_code)]

fn foo() {}

fn bar() -> [u8; 2] {
    foo();
    [1, 3] //~ ERROR expected `;`, found `[`
}

fn main() {}