Open endeav0r opened 7 years ago
I'm not able to reproduce the error with the code you've given. Could you paste (or link to a gist) the entire file?
I attempted to create a reduced example for this, but was unable to reproduce. This issue does come up in a larger codebase though. If I figure out more, I'll re-open issue/re-report.
Ok, the issue comes from having a pub struct
, instead of just struct
.
This will reproduce the issue:
extern crate ketos;
#[macro_use] extern crate ketos_derive;
#[derive(Clone, Debug, ForeignValue, FromValue, IntoValue)]
pub struct Example {
test: u64
}
fn main () {
}
I apologize for the confusion earlier.
I'm still not able to duplicate this error. Taking a stab in the dark, I'd guess maybe there's a version difference problem going on. What version of ketos
is your crate using? The latest version is 0.9.0.
I'm afraid it's very difficult to help diagnose the underlying cause without being able to see the entire codebase.
The following code:
Gives the error: