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);
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to