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 11:54:00 +00:00
error: visibility `pub(crate)` is not followed by an item
--> $DIR/pub-restricted-error-fn.rs:1:1
|
2019-03-09 12:03:44 +00:00
LL | pub(crate) () fn foo() {}
2020-02-23 03:49:26 +00: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