-
Notifications
You must be signed in to change notification settings - Fork 513
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
Rust error "non-primitive cast" with a weird key-pressed handler #4942
Labels
Comments
Oops, that looks like a bug to me. I can reproduce this. That said, I think there's also a bug in your code :-), which has the positive side-effect that it'll work around the bug and make it work as you probably expected:
|
tronical
added
bug
Something isn't working
a:language-rust
Rust API and codegen (mO,mS)
labels
Mar 26, 2024
We probably should make a warning for statement that don't do anything. |
This was referenced Mar 26, 2024
The rust compilation error is fixed. But opened #4954 to add a warning on useless statements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding the following code to a
.slint
(I just did the template and it repro'd)causes a Rust compilation error:
I'm using Slint 1.5.1 on macOS, with Rust.
This looks very similar to #3962
The text was updated successfully, but these errors were encountered: