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