]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-restricted-error-fn.stderr
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / pub / pub-restricted-error-fn.stderr
1 error: visibility `pub(crate)` is not followed by an item
2   --> $DIR/pub-restricted-error-fn.rs:1:1
3    |
4 LL | pub(crate) () fn foo() {}
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
14
15 error: aborting due to 2 previous errors
16