]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-ident-fn-with-lifetime.rs
Rollup merge of #97711 - Nilstrieb:rustc-arena-ub, r=wesleywiser
[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 }