summary refs log tree commit diff
path: root/tests/ui/duplicate/dupe-symbols-2.rs
blob: 03fff570dff5becd024e352b52b4f00e8b64ea65 (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() {
    //~^ ERROR symbol `fail` is already defined
    }
}