Consider the following enum:
#[deriving(Clone)]
enum List<'a> {
Nil,
Next(&'a List<'a>)
}
It generates en error:
<anon>:4:10: 4:22 error: mismatched types: expected `&List<>` but
found `List<>` (expected &-ptr but found enum List)
<anon>:4 Next(&'a List<'a>)
^~~~~~~~~~~~
note: in expansion of #[deriving]
<anon>:1:1: 2:5 note: expansion site
error: aborting due to previous error
Is it a bug in #[deriving] ?
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev