diff options
Diffstat (limited to 'src/test/ui/duplicate/dupe-symbols-1.rs')
-rw-r--r-- | src/test/ui/duplicate/dupe-symbols-1.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/duplicate/dupe-symbols-1.rs b/src/test/ui/duplicate/dupe-symbols-1.rs new file mode 100644 index 000000000..28e329b56 --- /dev/null +++ b/src/test/ui/duplicate/dupe-symbols-1.rs @@ -0,0 +1,14 @@ +// build-fail + +// +#![crate_type="rlib"] +#![allow(warnings)] + +#[export_name="fail"] +pub fn a() { +} + +#[export_name="fail"] +pub fn b() { +//~^ symbol `fail` is already defined +} |