rust/tests/ui/pub/pub-restricted-error-fn.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
437 B
Plaintext
Raw Normal View History

2020-02-23 05:54:00 -06:00
error: visibility `pub(crate)` is not followed by an item
--> $DIR/pub-restricted-error-fn.rs:1:1
|
2019-03-09 06:03:44 -06:00
LL | pub(crate) () fn foo() {}
2020-02-22 21:49:26 -06:00
| ^^^^^^^^^^ the visibility
|
= help: you likely meant to define an item, e.g., `pub(crate) fn foo() {}`
error: expected item, found `(`
--> $DIR/pub-restricted-error-fn.rs:1:12
|
LL | pub(crate) () fn foo() {}
| ^ expected item
error: aborting due to 2 previous errors