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