]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-1866.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-1866.rs
CommitLineData
d9bb1a4e 1// build-pass
0bf4aa26 2#![allow(dead_code)]
b7449926 3#![allow(non_camel_case_types)]
72b1a166 4#![warn(clashing_extern_declarations)]
b7449926 5
c34b1796
AL
6// pretty-expanded FIXME #23616
7
223e47cc 8mod a {
c34b1796 9 pub type rust_task = usize;
223e47cc 10 pub mod rustrt {
970d7e83 11 use super::rust_task;
1a4d82fc
JJ
12 extern {
13 pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
223e47cc
LB
14 }
15 }
16}
17
18mod b {
19 pub type rust_task = bool;
20 pub mod rustrt {
970d7e83 21 use super::rust_task;
1a4d82fc
JJ
22 extern {
23 pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
72b1a166 24 //~^ WARN `rust_task_is_unwinding` redeclared with a different signature
223e47cc
LB
25 }
26 }
27}
28
29pub fn main() { }