rust version:
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.79.0 (129f3b996 2024-06-10)
command:
cargo run --example capture_window
errors:
Compiling crabgrab v0.4.0 (/Users/kiwi/Documents/Rust/CrabGrab)
error[E0195]: lifetime parameters or bounds on type `Target` do not match the trait declaration
--> src/platform/macos/objc_wrap.rs:3363:1
|
3363 | / lazy_static! {
3364 | | static ref WINDOW_LEVELS: WindowLevels = {
3365 | | WindowLevels {
3366 | | base : get_window_level_for_key(kCGBaseWindowLevelKey),
... |
3388 | | };
3389 | | }
| |_^ lifetimes do not match type in trait
|
= note: this error originates in the macro `__lazy_static_internal` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0195`.
error: could not compile `crabgrab` (lib) due to 1 previous error
macos:
rust version: rustup 1.27.1 (54dd3d00f 2024-04-24) info: This is the version for the rustup toolchain manager, not the rustc compiler. info: The currently active
rustc
version isrustc 1.79.0 (129f3b996 2024-06-10)
command:
errors: