summary refs log tree commit diff
path: root/src/test/ui/issues/issue-28472.rs
blob: 17d74ea0cf41daa23c41e218e89c975dd9544044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {
}