rust/tests/ui/parser/issues/issue-113342.rs
Esteban Küber 855444ec54 mv tests
2023-10-24 21:27:05 +00:00

10 lines
199 B
Rust

#[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() {}