-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
error[E0308]: mismatched types #1399
Comments
How would you write into a |
well it's a so it becomes: let mut type_ = ptr::null();
ffi::stuff(&mut type_); // this coerces to `&mut type_ as *mut (*const gchar)` EDIT: sort of like what @sdroege said below, except it's just a simple output parameter returning a single string, there's no |
I think in Rust terms what this function returns is a So this is more a EDIT: This actually returns a single static string. So this is all correct and should've been a |
This part, the return value, is missing a |
gir generates
ptr::null_mut()
for&mut type_
instead ofptr::null()
for a function that returns a const ptr (const gchar**
argument type):gir source
The text was updated successfully, but these errors were encountered: