]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | error: visibility `pub(crate)` is not followed by an item |
2 | --> $DIR/pub-restricted-error-fn.rs:1:1 | |
cc61c64b | 3 | | |
532ac7d7 | 4 | LL | pub(crate) () fn foo() {} |
74b04a01 XL |
5 | | ^^^^^^^^^^ the visibility |
6 | | | |
7 | = help: you likely meant to define an item, e.g., `pub(crate) fn foo() {}` | |
8 | ||
9 | error: expected item, found `(` | |
10 | --> $DIR/pub-restricted-error-fn.rs:1:12 | |
11 | | | |
12 | LL | pub(crate) () fn foo() {} | |
13 | | ^ expected item | |
cc61c64b | 14 | |
74b04a01 | 15 | error: aborting due to 2 previous errors |
cc61c64b | 16 |