]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / pub / pub-ident-fn-with-lifetime-2.rs
1 pub   bar<'a>(&self, _s: &'a usize) -> bool { true }
2 //~^ ERROR missing `fn` for method definition
3
4 fn main() {
5     bar(2);
6 }