1 error: visibility `pub(crate)` is not followed by an item
2 --> $DIR/pub-restricted-error-fn.rs:1:1
4 LL | pub(crate) () fn foo() {}
5 | ^^^^^^^^^^ the visibility
7 = help: you likely meant to define an item, e.g., `pub(crate) fn foo() {}`
9 error: expected item, found `(`
10 --> $DIR/pub-restricted-error-fn.rs:1:12
12 LL | pub(crate) () fn foo() {}
15 error: aborting due to 2 previous errors