rust/tests/ui/rfcs/rfc-2627-raw-dylib/link-ordinal-invalid-format.rs

12 lines
284 B
Rust

#[link(name = "foo")]
extern "C" {
#[link_ordinal("JustMonika")]
//~^ ERROR illegal ordinal format in `link_ordinal`
fn foo();
#[link_ordinal("JustMonika")]
//~^ ERROR illegal ordinal format in `link_ordinal`
static mut imported_variable: i32;
}
fn main() {}