]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1866.rs
Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup
[rust.git] / src / test / ui / issues / 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 {
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 {
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() { }