rust/tests/ui/pub/pub-ident-fn-with-lifetime-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
124 B
Rust
Raw Normal View History

pub bar<'a>(&self, _s: &'a usize) -> bool { true }
//~^ ERROR missing `fn` for method definition
fn main() {
bar(2);
}