]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-ident-fn.fixed
Auto merge of #98203 - kckeiks:gather-body-owners-in-hir-item-queries, r=cjgillot
[rust.git] / src / test / ui / pub / pub-ident-fn.fixed
1 // run-rustfix
2
3 pub fn foo(_s: usize) -> bool { true }
4 //~^ ERROR missing `fn` for function definition
5
6 fn main() {
7     foo(2);
8 }