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

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

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