]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-ident-fn.rs
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / pub / pub-ident-fn.rs
1 // run-rustfix
2
3 pub   foo(_s: usize) -> bool { true }
4 //~^ ERROR missing `fn` for function definition
5
6 fn main() {
7     foo(2);
8 }