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

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

9 lines
138 B
Rust
Raw Normal View History

2020-07-02 05:32:12 +00:00
// run-rustfix
pub foo<'a>(_s: &'a usize) -> bool { true }
//~^ ERROR missing `fn` for function definition
fn main() {
2020-07-02 05:32:12 +00:00
foo(&2);
}