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

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

pub mod a {
    #[no_mangle]
    pub extern "C" fn fail() {
    }
}

pub mod b {
    #[no_mangle]
    pub extern "C" fn fail() {
    //~^ symbol `fail` is already defined
    }
}