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