This is the first rust program I have tried to build. After I downloaded the latest version of rust using the install instructions/script for rustup, it gave me 6 build errors around the types. The versions of the rust tools are listed below as well as my environment setup is below:
error[E0308]: mismatched types
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.21.0/src/platform_impl/macos/util/async.rs:170:55
|
170 | ns_window.setFrame_display_(new_rect, 0);
| ----------------- ^ expected `bool`, found integer
| |
| arguments to this method are incorrect
|
note: method defined here
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cocoa-0.19.1/src/appkit.rs:945:15
|
945 | unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL);
| ^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.21.0/src/platform_impl/macos/window.rs:631:22
|
631 | is_zoomed != 0
| --------- ^ expected `bool`, found integer
| |
| expected because this is `bool`
error[E0308]: mismatched types
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.21.0/src/platform_impl/macos/window.rs:1115:48
|
1115 | window.setFrame_display_(current_rect, 0)
| ----------------- ^ expected `bool`, found integer
| |
| arguments to this method are incorrect
|
note: method defined here
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cocoa-0.19.1/src/appkit.rs:945:15
|
945 | unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL);
| ^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.21.0/src/platform_impl/macos/window.rs:1122:48
|
1122 | window.setFrame_display_(current_rect, 0)
| ----------------- ^ expected `bool`, found integer
| |
| arguments to this method are incorrect
|
note: method defined here
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cocoa-0.19.1/src/appkit.rs:945:15
|
945 | unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL);
| ^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.21.0/src/platform_impl/macos/window.rs:1139:48
|
1139 | window.setFrame_display_(current_rect, 0)
| ----------------- ^ expected `bool`, found integer
| |
| arguments to this method are incorrect
|
note: method defined here
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cocoa-0.19.1/src/appkit.rs:945:15
|
945 | unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL);
| ^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.21.0/src/platform_impl/macos/window.rs:1146:48
|
1146 | window.setFrame_display_(current_rect, 0)
| ----------------- ^ expected `bool`, found integer
| |
| arguments to this method are incorrect
|
note: method defined here
--> /Users/stephenmiller/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cocoa-0.19.1/src/appkit.rs:945:15
|
945 | unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL);
| ^^^^^^^^^^^^^^^^^
Compiling math v0.1.0 (/Users/stephenmiller/dev/rust-doom/math)
Compiling rand v0.5.6
Compiling failchain v0.1018.2
Compiling atty v0.2.14
For more information about this error, try `rustc --explain E0308`.
error: could not compile `winit` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
This is the first rust program I have tried to build. After I downloaded the latest version of rust using the install instructions/script for
rustup, it gave me 6 build errors around the types. The versions of therusttools are listed below as well as my environment setup is below:rustup: 1.28.2 (e4f3ad6f8 2025-04-28)cargo: 1.93.1 (083ac5135 2025-12-15)rustc: rustc 1.93.1 (01f6ddf75 2026-02-11)macOS: 26.3laptop: M5 MBP