C header (simplified):
HRESULT STDMETHODCALLTYPE NoRegCoCreate();
Currently panics:
thread 'main' (85492) panicked at build.rs:13:10:
called `Result::unwrap()` on an `Err` value:
error: unknown type name 'HRESULT'
--> .windows/header.h:14:1
stack backtrace:
0: std::panicking::panic_handler
at /rustc/14196dbfa3eb7c30195251eac092b1b86c8a2d84/library\std\src\panicking.rs:689
1: core::panicking::panic_fmt
at /rustc/14196dbfa3eb7c30195251eac092b1b86c8a2d84/library\core\src\panicking.rs:80
2: core::result::unwrap_failed
at /rustc/14196dbfa3eb7c30195251eac092b1b86c8a2d84/library\core\src\result.rs:1867
3: build_script_build::main
4: <fn() as core::ops::function::FnOnce<()>>::call_once
It was expected to produce RDL:
#[win32]
mod Test {
#[library("test.dll")]
extern fn NoRegCoCreate() -> Windows::Win32::Foundation::HRESULT;
}
C header (simplified):
Currently panics:
It was expected to produce RDL: