]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/suggest-suggest-semicolon-before-array.fixed
Auto merge of #100678 - GuillaumeGomez:improve-rustdoc-json-tests, r=aDotInTheVoid
[rust.git] / src / test / ui / parser / suggest-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() {}