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