summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pub/pub-ident-fn-2.rs
blob: e7b86a9098d16dd9575c101ffe675461a10e5521 (plain)
1
2
3
4
5
6
7
8
9
10
// run-rustfix

pub foo(_s: usize) { bar() }
//~^ ERROR missing `fn` for function definition

fn bar() {}

fn main() {
    foo(2);
}