rust/tests/ui/duplicate/dupe-symbols-5.rs
2023-01-11 09:32:08 +00:00

14 lines
181 B
Rust

// build-fail
//
#![crate_type="rlib"]
#![allow(warnings)]
#[export_name="fail"]
static HELLO: u8 = 0;
#[export_name="fail"]
pub fn b() {
//~^ symbol `fail` is already defined
}