-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I tried to use stabby::slice::Slice to write the same:
stabby/examples/libloading/src/main.rs
Line 38 in 20d9837
| .get_canaried::<extern "C" fn(&[u8])>(b"unstable_fn") |
But it failed to compile
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`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels