]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-ident-fn-with-lifetime.stderr
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / pub / pub-ident-fn-with-lifetime.stderr
1 error: missing `fn` for function definition
2   --> $DIR/pub-ident-fn-with-lifetime.rs:3:4
3    |
4 LL | pub   foo<'a>(_s: &'a usize) -> bool { true }
5    |    ^^^
6    |
7 help: add `fn` here to parse `foo` as a public function
8    |
9 LL | pub fn foo<'a>(_s: &'a usize) -> bool { true }
10    |     ++
11
12 error: aborting due to previous error
13