]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1866.rs
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-1866.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 // pretty-expanded FIXME #23616
6
7 mod a {
8     pub type rust_task = usize;
9     pub mod rustrt {
10         use super::rust_task;
11         extern {
12             pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
13         }
14     }
15 }
16
17 mod b {
18     pub type rust_task = bool;
19     pub mod rustrt {
20         use super::rust_task;
21         extern {
22             pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
23         }
24     }
25 }
26
27 pub fn main() { }