Why does a LoadCursorA generate 'trait implementation' build errors when a LoadCursorW call does not when using the rust Crate for Windows?
#[allow(dead_code)]
use windows::Win32::UI::WindowsAndMessaging::LoadCursorA;
use windows::Win32::UI::WindowsAndMessaging::IDC_ARROW;
fn main() {
unsafe {
let _h_cursor = LoadCursorA(None, IDC_ARROW);
//let _h_cursor = LoadCursorA(None, &IDC_ARROW);
};
}
error[E0277]: the trait bound PWSTR: IntoParam<'_, PSTR>
is not satisfied