Try data.clone() instead. On Wednesday, April 17, 2013, Alexander Stavonin wrote:
> Hi, > > I'd like to clone RWARC object. For example: > > let data = arc::RWARC(get_data()); > > How can I do it? I tried next: > > let read_data = arc::clone(&data); > > But looks like I have to write something different: > > error: mismatched types: expected `&std::arc::ARC<<V5>>` but found > `&std::arc::RWARC<~[uint]>` > > Next forme doesn't work too: > > let read_data = arc::RWARC::clone(&data); > -- http://about.me/abhijeet.gaiha
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
