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
Or something along those lines? I'm not quite sure what the correct terminology would be. When I try to compile this:
#[crate_type = "bin"];
extern mod std;
#[deriving(Clone)]
pub struct Hash {
value: [u8, ..20],
}
fn main () {}
I get:
sample.rs:4:11: 4:16 error: mismatched types: expected `[u8, .. 20]` but found `&[u8, .. 20]` (expected vector but found &-ptr)
sample.rs:4 #[deriving(Clone)]
^~~~~
error: aborting due to previous error
It seems like this should work straightforwardly. The same kind of issue pops up for Cmp, Eq, etc.