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