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