2015-09-19 00:27:51 +02:00
|
|
|
// Check that the visibility modifier is included in the span of foreign items.
|
|
|
|
|
|
2020-09-01 17:12:52 -04:00
|
|
|
extern "C" {
|
2015-09-19 00:27:51 +02:00
|
|
|
fn foo();
|
|
|
|
|
|
2017-05-17 20:29:58 -07:00
|
|
|
pub //~ ERROR the name `foo` is defined multiple times
|
2015-09-19 00:27:51 +02:00
|
|
|
fn foo();
|
|
|
|
|
|
2017-05-17 20:29:58 -07:00
|
|
|
pub //~ ERROR the name `foo` is defined multiple times
|
2015-09-19 00:27:51 +02:00
|
|
|
static mut foo: u32;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
}
|