rust/src/test/ui/issues/issue-28472.rs
2018-12-25 21:08:33 -07:00

15 lines
270 B
Rust

// Check that the visibility modifier is included in the span of foreign items.
extern {
fn foo();
pub //~ ERROR the name `foo` is defined multiple times
fn foo();
pub //~ ERROR the name `foo` is defined multiple times
static mut foo: u32;
}
fn main() {
}