]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28472.rs
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / 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 }