summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/suggest-semicolon-before-array.rs
blob: f601ca2aef54efe8e8d4316d668ee0413caa043b (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() {}