rust/src/test/ui/pub/pub-restricted-error-fn.stderr

17 lines
416 B
Plaintext
Raw Normal View History

error: unmatched visibility `pub`
--> $DIR/pub-restricted-error-fn.rs:1:1
|
2019-03-09 06:03:44 -06:00
LL | pub(crate) () fn foo() {}
| ^^^^^^^^^^ 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
error: aborting due to 2 previous errors