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