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

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

fn main() {
    foo(2);
}