rust/src/test/ui/parser/duplicate-visibility.stderr

22 lines
504 B
Plaintext
Raw Normal View History

2020-02-23 11:54:00 +00:00
error: visibility `pub` is not followed by an item
--> $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
|
= 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
LL | pub pub fn foo();
| ^^^ non-item starts here
...
LL | }
| - item list ends here
2018-10-20 20:36:17 +00:00
error: aborting due to 2 previous errors
2018-10-20 20:36:17 +00:00