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-2.rs:3:1
|
2017-11-21 08:03:02 -08:00
|
|
|
|
|
2020-07-02 14:32:12 +09:00
|
|
|
LL | pub foo(_s: usize) { bar() }
|
2024-07-06 13:14:53 +03:00
|
|
|
| ^^^^^^^
|
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
|
2017-11-21 08:03:02 -08:00
|
|
|
|
|
2020-07-02 14:32:12 +09:00
|
|
|
LL | pub fn foo(_s: usize) { bar() }
|
2021-06-21 19:07:19 -07:00
|
|
|
| ++
|
2017-11-21 08:03:02 -08:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-11-21 08:03:02 -08:00
|
|
|
|