blob: 839e07ea1b9619bad7272085f6cfe61d59c3c78c [file] [edit]
//! Regression test for <https://github.com/rust-lang/rust/issues/28472>.
//! Check that the visibility modifier is included in the span of foreign items.
extern "C" {
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() {
}