error: unmatched visibility `pub` --> $DIR/pub-restricted-error-fn.rs:3:10 | LL | pub(crate) () fn foo() {} | ^ error: aborting due to previous error