about summary refs log tree commit diff
path: root/tests/ui/parser/suggest-semicolon-before-array.fixed
blob: 219e2ae28b235c536104df911704a47530e6c5a9 (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() {}