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