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`
I tried to use
stabby::slice::Sliceto write the same:stabby/examples/libloading/src/main.rs
Line 38 in 20d9837
But it failed to compile