]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-28472.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-28472.rs
1 // Check that the visibility modifier is included in the span of foreign items.
2
3 extern "C" {
4 fn foo();
5
6 pub //~ ERROR the name `foo` is defined multiple times
7 fn foo();
8
9 pub //~ ERROR the name `foo` is defined multiple times
10 static mut foo: u32;
11 }
12
13 fn main() {
14 }