ITADN

Mismatched type in accesskit_macos dependency

#23Openmaaku 创建于 2024-08-17
M
maakucommented
On a fresh checkout on macOS, running `cargo run --example complex` generates the following error: ```rust error[E0308]: mismatched types --> /Users/mark/.cargo/registry/src/index.crates.io-6f17d22bba15001f/accesskit_macos-0.15.0/src/patch.rs:44:13 | 44 | focus_forwarder as unsafe extern "C" fn(_, _) -> _, | ^^^^^^^^^^^^^^^ one type is more general than the other | = note: expected fn pointer `unsafe extern "C" fn(&NSWindow, objc2::runtime::Sel) -> _` found fn pointer `unsafe extern "C" for<'a> fn(&'a NSWindow, objc2::runtime::Sel) -> _` For more information about this error, try `rustc --explain E0308`. error: could not compile `accesskit_macos` (lib) due to 1 previous error ``` `accesskit_macos` is a dependency pulled in by `bevy` so this shouldn't be quill's problem per se, but notably the bevy examples compile out of the box. I know that quill is using nightly features... maybe that's the source of the error? Sorry for providing just a drive-by issue, but I was just interested in trying out quill and not deeply invested in this yet.
2 条评论