summaryrefslogtreecommitdiffstats
path: root/tests/ui/pub/pub-ident-fn.fixed
blob: 65ed8c7b4dd7eecad52af4f9419adc3c2de351d4 (plain)
1
2
3
4
5
6
7
8
// run-rustfix

pub fn foo(_s: usize) -> bool { true }
//~^ ERROR missing `fn` for function definition

fn main() {
    foo(2);
}