mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
12 lines
310 B
Plaintext
12 lines
310 B
Plaintext
error: expected `fn`, found keyword `pub`
|
|
--> $DIR/issue-113342.rs:7:12
|
|
|
|
|
LL | extern "C" pub fn id(x: i32) -> i32 { x }
|
|
| -----------^^^
|
|
| | |
|
|
| | expected `fn`
|
|
| help: visibility `pub` must come before `extern "C"`: `pub extern "C"`
|
|
|
|
error: aborting due to previous error
|
|
|