2017-03-17 23:13:00 -05:00
|
|
|
error: unmatched visibility `pub`
|
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-01-31 01:37:09 -06:00
|
|
|
| ^^^^^^^^^^ the unmatched visibility
|
|
|
|
|
|
|
|
|
= help: you likely meant to define an item, e.g., `pub fn foo() {}`
|
|
|
|
|
|
|
|
error: expected item, found `(`
|
|
|
|
--> $DIR/pub-restricted-error-fn.rs:1:12
|
|
|
|
|
|
|
|
|
LL | pub(crate) () fn foo() {}
|
|
|
|
| ^ expected item
|
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
|
|
|
|