]> git.lizzy.rs Git - rust.git/blob - tests/ui/duplicate/dupe-symbols-2.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / duplicate / dupe-symbols-2.rs
1 // build-fail
2
3 //
4 #![crate_type="rlib"]
5 #![allow(warnings)]
6
7 pub mod a {
8     #[no_mangle]
9     pub extern "C" fn fail() {
10     }
11 }
12
13 pub mod b {
14     #[no_mangle]
15     pub extern "C" fn fail() {
16     //~^ symbol `fail` is already defined
17     }
18 }