blob: 45ad412e7a55ea23eaa18b01b4b6efa95f73119c [file] [log] [blame]
#[no_mangle]
fn foo() {}
//~^ HELP: it's first defined here, in crate `exported_symbol_clashing`
#[export_name = "foo"]
fn bar() {}
//~^ HELP: then it's defined here again, in crate `exported_symbol_clashing`
fn main() {
extern "Rust" {
fn foo();
}
unsafe { foo() }
//~^ ERROR: multiple definitions of symbol `foo`
}