2018-11-30 17:05:13 -06:00
|
|
|
error: missing `fn` for method definition
|
2024-07-06 05:14:53 -05:00
|
|
|
--> $DIR/pub-ident-fn-with-lifetime-2.rs:1:1
|
2018-11-30 17:05:13 -06:00
|
|
|
|
|
2024-07-06 05:14:53 -05:00
|
|
|
LL | pub bar<'a>(&self, _s: &'a usize) -> bool { true }
|
|
|
|
| ^^^^^^^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2024-07-06 05:14:53 -05:00
|
|
|
help: add `fn` here to parse `bar` as a method
|
2018-11-30 17:05:13 -06:00
|
|
|
|
|
|
|
|
LL | pub fn bar<'a>(&self, _s: &'a usize) -> bool { true }
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2018-11-30 17:05:13 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-11-30 17:05:13 -06:00
|
|
|
|