-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: /crates/samples/create_window/src/main.rs Line 40 expected *-ptr, found enum Option
#1977
Comments
Does this work? |
yes |
The samples in the repo compile with the latest, usually pre-release, version of the https://github.com/microsoft/windows-rs/tree/0.39.0 That will give you the samples that compile with version 0.39 of the |
Maybe you could add that note to readme in samples directory? |
Sure! Here you go: #1980 |
So yes, I'd love to but Cargo 1.46 doesn't appear to support that. #1980 Perhaps in future when we no longer need to validate against 1.46 for |
Fixed! #1991 |
Which crate is this about?
windows
Crate version
0.39.0
Summary
No response
Toolchain version/configuration
No response
Reproducible example
No response
Crate manifest
Expected behavior
Sample runs without errors.
Actual behavior
error[E0308]: mismatched types
--> src\main.rs:40:38
|
40 | ValidateRect(window, None);
| ------------ ^^^^ expected *-ptr, found enum
Option
| |
| arguments to this function are incorrect
|
= note: expected raw pointer
*const RECT
found enum
Option<_>
Additional comments
No response
The text was updated successfully, but these errors were encountered: