]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-1866.rs
Rollup merge of #106829 - compiler-errors:more-alias-combine, r=spastorino
[rust.git] / tests / ui / lint / issue-1866.rs
1 // build-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4 #![warn(clashing_extern_declarations)]
5
6 // pretty-expanded FIXME #23616
7
8 mod a {
9     pub type rust_task = usize;
10     pub mod rustrt {
11         use super::rust_task;
12         extern "C" {
13             pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
14         }
15     }
16 }
17
18 mod b {
19     pub type rust_task = bool;
20     pub mod rustrt {
21         use super::rust_task;
22         extern "C" {
23             pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
24         //~^ WARN `rust_task_is_unwinding` redeclared with a different signature
25         }
26     }
27 }
28
29 pub fn main() {}