2020-02-23 12:54:00 +01:00
|
|
|
error: visibility `pub(crate)` is not followed by an item
|
2020-01-31 08:37:09 +01:00
|
|
|
--> $DIR/pub-restricted-error-fn.rs:1:1
|
2017-03-17 21:13:00 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | pub(crate) () fn foo() {}
|
2020-02-23 04:49:26 +01:00
|
|
|
| ^^^^^^^^^^ the visibility
|
2020-01-31 08:37:09 +01:00
|
|
|
|
|
2020-02-01 06:18:10 +01:00
|
|
|
= help: you likely meant to define an item, e.g., `pub(crate) fn foo() {}`
|
2020-01-31 08:37:09 +01:00
|
|
|
|
|
|
|
error: expected item, found `(`
|
|
|
|
--> $DIR/pub-restricted-error-fn.rs:1:12
|
|
|
|
|
|
|
|
|
LL | pub(crate) () fn foo() {}
|
|
|
|
| ^ expected item
|
2023-09-06 09:05:07 +05:30
|
|
|
|
|
|
|
|
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
|
2017-03-17 21:13:00 -07:00
|
|
|
|
2020-01-31 08:37:09 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2017-03-17 21:13:00 -07:00
|
|
|
|