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

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

fn main() {
    foo(&2);
}