mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
15 lines
274 B
Rust
15 lines
274 B
Rust
// 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() {
|
|
}
|