summaryrefslogtreecommitdiffstats
path: root/tests/ui/pub/pub-ident-fn-with-lifetime-2.rs
blob: 1ee8c84f13bd3b78f2a753b0bd0dabedb82b621b (plain)
1
2
3
4
5
6
pub   bar<'a>(&self, _s: &'a usize) -> bool { true }
//~^ ERROR missing `fn` for method definition

fn main() {
    bar(2);
}