I see there. I'm sorry, I missed this part of the tutorial.
thank for your reply. saludos -f On 3/1/12, Niko Matsakis <[email protected]> wrote: > On 3/1/12 3:24 PM, Federico Luna wrote: >> hi, >> i learning rust-lang and i need some help of you. >> In following example, test0() and test1() don't compile. >> >> How should I write test0 () and test1() correctly? > > Hi! > > Your problem is that `naux()` has the wrong argument mode. You need to > write: > > fn naux(&&n: int) -> int { n + 1 } > > The reasons why are discussed in sec 8.6 of the tutorial: > > > http://doc.rust-lang.org/doc/tutorial.html#generic-functions-and-argument-passing > > Let us know if you have any more questions. > > > regards, > Niko > _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
