]> git.lizzy.rs Git - rust.git/blob - src/test/ui/duplicate/dupe-symbols-1.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / ui / duplicate / dupe-symbols-1.rs
1 // build-fail
2
3 //
4 #![crate_type="rlib"]
5 #![allow(warnings)]
6
7 #[export_name="fail"]
8 pub fn a() {
9 }
10
11 #[export_name="fail"]
12 pub fn b() {
13 //~^ symbol `fail` is already defined
14 }