rust/tests/ui/issues/issue-28472.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
274 B
Rust
Raw Normal View History

// Check that the visibility modifier is included in the span of foreign items.
2020-09-01 21:12:52 +00:00
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() {
}