2020-02-23 11:54:00 +00:00
|
|
|
error: visibility `pub` is not followed by an item
|
2020-02-22 05:57:31 +00:00
|
|
|
--> $DIR/duplicate-visibility.rs:4:5
|
2018-10-20 20:36:17 +00:00
|
|
|
|
|
|
|
|
LL | pub pub fn foo();
|
2020-02-23 03:49:26 +00:00
|
|
|
| ^^^ the visibility
|
2020-02-22 05:57:31 +00:00
|
|
|
|
|
|
|
|
= help: you likely meant to define an item, e.g., `pub fn foo() {}`
|
|
|
|
|
|
|
|
error: non-item in item list
|
|
|
|
--> $DIR/duplicate-visibility.rs:4:9
|
|
|
|
|
|
2020-09-01 21:12:52 +00:00
|
|
|
LL | extern "C" {
|
|
|
|
| - item list starts here
|
2020-02-22 05:57:31 +00:00
|
|
|
LL | pub pub fn foo();
|
|
|
|
| ^^^ non-item starts here
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - item list ends here
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2020-02-22 05:57:31 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 20:36:17 +00:00
|
|
|
|