]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-28472.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.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 }