-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Using errors as function/callback method parameters #1873
Comments
welp, I was hoping this was fixed on main, but there I see something slightly different.
@bendk any ideas? |
Oh, I see. I was testing with |
No, its not working on |
We implement uniffi-rs/uniffi_macros/src/error.rs Lines 89 to 91 in 42362c8
I think this means that using |
Yes you are right, if Rust enum derives |
I'm not entirely sure whether this is meant to be supported or not. If this is indeed a valid use case, then a similliar issue in uniffi-bindgen-go will also have to be fixed.
Using an error as function parameter causes compilation errors.
Sample:
Repro:
The text was updated successfully, but these errors were encountered: