blob: 266f4deb1aa83ef3fc536bf7b93779e1e7096541 [file] [edit]
#[no_mangle]
static FOO: u8 = 1;
//~^ HELP: it's first defined here, in crate `clashing`
#[export_name = "FOO"]
static BAR: u8 = 2;
//~^ HELP: then it's defined here again, in crate `clashing`
fn main() {
extern "Rust" {
static FOO: u8;
}
let _val = &raw const FOO;
//~^ ERROR: multiple definitions of symbol `FOO`
}