rust/tests/ui/parser/issue-113342.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
199 B
Rust
Raw Normal View History

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