Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
parser
/
issues
/
issue-113342.rs
blob: 18b502736f7ba10532518bbe6bade52e93316f13 [
file
] [
log
] [
blame
] [
edit
]
#[
link
(
name
=
"my_c_library"
)]
extern
"C"
{
fn
my_c_function
(
x
:
i32
)
->
bool
;
}
#[
no_mangle
]
extern
"C"
pub
fn
id
(
x
:
i32
)
->
i32
{
x
}
//~ ERROR expected `fn`, found keyword `pub`
fn
main
()
{}