summaryrefslogtreecommitdiffstats
path: root/tests/ui/duplicate/dupe-symbols-5.rs
blob: ea801cef64f151ee632de4af90afc23ae1dd8266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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
}