]> git.lizzy.rs Git - rust.git/blob - tests/ui/pub/pub-ident-fn-with-lifetime.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / 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