]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/suggest-semicolon-before-array.fixed
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / suggest-semicolon-before-array.fixed
1 // run-rustfix
2 #![allow(dead_code)]
3
4 fn foo() {}
5
6 fn bar() -> [u8; 2] {
7     foo();
8     [1, 3] //~ ERROR expected `;`, found `[`
9 }
10
11 fn main() {}