Created
January 22, 2019 15:19
-
-
Save GuillaumeGomez/82a717d2d848e944d2d3f503490c3a47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0308]: mismatched types | |
--> src/auto/functions.rs:173:32 | |
| | |
173 | ffi::g_child_watch_add(pid, function, Box::into_raw(super_callback0) as *mut _) | |
| ^^^ expected i32, found struct `source::Pid` | |
| | |
= note: expected type `i32` | |
found type `source::Pid` | |
error[E0277]: the trait bound `i32: translate::Ptr` is not satisfied | |
--> src/auto/functions.rs:162:19 | |
| | |
162 | let pid = from_glib_borrow(pid); | |
| ^^^^^^^^^^^^^^^^ the trait `translate::Ptr` is not implemented for `i32` | |
| | |
note: required by `translate::from_glib_borrow` | |
--> src/translate.rs:1052:1 | |
| | |
1052| pub unsafe fn from_glib_borrow<P: Ptr, T: FromGlibPtrBorrow<P>>(ptr: P) -> T { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0277]: the trait bound `source::Pid: translate::FromGlibPtrBorrow<i32>` is not satisfied | |
--> src/auto/functions.rs:162:19 | |
| | |
162 | let pid = from_glib_borrow(pid); | |
| ^^^^^^^^^^^^^^^^ the trait `translate::FromGlibPtrBorrow<i32>` is not implemented for `source::Pid` | |
| | |
note: required by `translate::from_glib_borrow` | |
--> src/translate.rs:1052:1 | |
| | |
1052| pub unsafe fn from_glib_borrow<P: Ptr, T: FromGlibPtrBorrow<P>>(ptr: P) -> T { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> src/auto/functions.rs:195:47 | |
| | |
195 | ffi::g_child_watch_add_full(priority, pid, function, Box::into_raw(super_callback0) as *mut _, destroy_call4) | |
| ^^^ expected i32, found struct `source::Pid` | |
| | |
= note: expected type `i32` | |
found type `source::Pid` | |
error[E0277]: the trait bound `i32: translate::Ptr` is not satisfied | |
--> src/auto/functions.rs:180:19 | |
| | |
180 | let pid = from_glib_borrow(pid); | |
| ^^^^^^^^^^^^^^^^ the trait `translate::Ptr` is not implemented for `i32` | |
| | |
note: required by `translate::from_glib_borrow` | |
--> src/translate.rs:1052:1 | |
| | |
1052| pub unsafe fn from_glib_borrow<P: Ptr, T: FromGlibPtrBorrow<P>>(ptr: P) -> T { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0277]: the trait bound `source::Pid: translate::FromGlibPtrBorrow<i32>` is not satisfied | |
--> src/auto/functions.rs:180:19 | |
| | |
180 | let pid = from_glib_borrow(pid); | |
| ^^^^^^^^^^^^^^^^ the trait `translate::FromGlibPtrBorrow<i32>` is not implemented for `source::Pid` | |
| | |
note: required by `translate::from_glib_borrow` | |
--> src/translate.rs:1052:1 | |
| | |
1052| pub unsafe fn from_glib_borrow<P: Ptr, T: FromGlibPtrBorrow<P>>(ptr: P) -> T { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: aborting due to 6 previous errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment