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