I'm very sorry. I forgot `make install`. Now it works OK.
2014-02-14 11:58 GMT+08:00 Liigo Zhuang <[email protected]>: > rustc -v: > ``` > rustc 0.10-pre (a102aef 2014-02-12 08:41:19 +0800) > host: x86_64-unknown-linux-gnu > ``` > > The most recent rustc, i just recompiled from mozilla/rust/master several > minutes ago. > The same compile error occurred. > > > 2014-02-14 1:37 GMT+08:00 Alex Crichton <[email protected]>: > > Can you supply the output of `rustc -v`? The snippet complies ok for >> me off master. >> >> On Thu, Feb 13, 2014 at 8:17 AM, Liigo Zhuang <[email protected]> >> wrote: >> > I compiled the lasted rustc from source yesterday. >> > >> > 2014年2月13日 下午8:17于 "Alex Crichton" <[email protected]>写道: >> > >> >> What version of the compiler are you using? The clone-able Chan only >> >> very recently landed, so you'll need a very up-to-date compiler to get >> >> the change. >> >> >> >> On Thu, Feb 13, 2014 at 6:12 AM, Liigo Zhuang <[email protected]> >> wrote: >> >> > Hi Rusties, >> >> > >> >> > When try to compile tmp.rs, I got the error: >> >> > >> >> > ``` >> >> > tmp.rs:8:10: 8:19 error: type `std::comm::Chan<A>` does not >> implement >> >> > any >> >> > method in scope named `clone` >> >> > tmp.rs:8 let _ = c.clone(); >> >> > ^~~~~~~~~ >> >> > ``` >> >> > >> >> > But I don't know how to do. Please help me. Thank you. >> >> > >> >> > tmp.rs: >> >> > ``` >> >> > #[deriving(Clone)] >> >> > pub struct A { >> >> > dummy: uint, >> >> > } >> >> > >> >> > pub fn main() { >> >> > let (p, c) = Chan::<A>::new(); >> >> > let _ = c.clone(); >> >> > } >> >> > ``` >> >> > >> >> > -- >> >> > by Liigo, http://blog.csdn.net/liigo/ >> >> > Google+ https://plus.google.com/105597640837742873343/ >> >> > >> >> > _______________________________________________ >> >> > Rust-dev mailing list >> >> > [email protected] >> >> > https://mail.mozilla.org/listinfo/rust-dev >> >> > >> > > > > -- > by *Liigo*, http://blog.csdn.net/liigo/ > Google+ https://plus.google.com/105597640837742873343/ > -- by *Liigo*, http://blog.csdn.net/liigo/ Google+ https://plus.google.com/105597640837742873343/
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
