summaryrefslogtreecommitdiffstats
path: root/tests/ui/duplicate/dupe-symbols-3.rs
blob: 1af2fe98e50e1983a8d8f63ccd8b16cdc8aa4c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// build-fail

//
#![crate_type="rlib"]
#![allow(warnings)]

#[export_name="fail"]
pub fn a() {
}

#[no_mangle]
pub fn fail() {
//~^ symbol `fail` is already defined
}