rust/src/test/compile-fail/empty-linkname.rs
Graham Fawcett 7ddd353ef6 implement #[nolink]; deprecate #[link_name = ""]; note in stdlib to remove empty link_name.
Can't remove them from stdlib until the snapshotted compiler supports #[nolink].
2011-12-16 15:29:59 -08:00

6 lines
102 B
Rust

// error-pattern:empty #[link_name] not allowed; use #[nolink].
#[link_name = ""]
native mod foo {
}