rust/tests/ui/duplicate/dupe-symbols-5.rs

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

14 lines
181 B
Rust
Raw Normal View History

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