]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-ident-fn-with-lifetime.fixed
Rollup merge of #97712 - RalfJung:untyped, r=scottmcm
[rust.git] / src / test / ui / pub / pub-ident-fn-with-lifetime.fixed
1 // run-rustfix
2
3 pub fn foo<'a>(_s: &'a usize) -> bool { true }
4 //~^ ERROR missing `fn` for function definition
5
6 fn main() {
7     foo(&2);
8 }