1. The following code
----
#[deriving(Clone)]
struct V {
v : [f64, ..3]
}
fn main() {
}
----
gives the following error
----
tmp.rs:1:11: 1:16 error: mismatched types: expected `[f64, .. 3]` but found
`&[f64, .. 3]` (expected vector but found &-ptr)
tmp.rs:1 #[deriving(Clone)]
----
Is this intended behavior or a bug?
2. Also, how does one now implement the Copy trait anymore? Using
#[deriving Copy] currently gives the following error
error: unknown `deriving` trait: `Copy`
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev