You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: implementation of `IStable` is not general enough
--> src/main.rs:165:65
|
165 | let exit_fn: extern "C" fn(stabby::slice::Slice<u8>) = *llib.get_stabbied(b"exit").unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `IStable` is not general enough
|
= note: `IStable` would have to be implemented for the type `for<'a> extern "C" fn(Slice<'a, u8>)`
= note: ...but `IStable` is actually implemented for the type `extern "C" fn(Slice<'0, u8>)`, for some specific lifetime `'0`
The text was updated successfully, but these errors were encountered:
I tried to use
stabby::slice::Slice
to write the same:stabby/examples/libloading/src/main.rs
Line 38 in 20d9837
But it failed to compile
The text was updated successfully, but these errors were encountered: