os-rust/tests/ui/duplicate/dupe-symbols-2.rs

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

19 lines
241 B
Rust
Raw Normal View History

//@ build-fail
//
#![crate_type="rlib"]
#![allow(warnings)]
2017-10-30 18:19:31 +01:00
pub mod a {
#[no_mangle]
pub extern "C" fn fail() {
}
}
2017-10-30 18:19:31 +01:00
pub mod b {
#[no_mangle]
pub extern "C" fn fail() {
2015-03-04 01:09:10 +02:00
//~^ symbol `fail` is already defined
}
}