Additionally, io::println can now just be println, and int::to_str(x)
is now x.to_str()
On Fri, Aug 23, 2013 at 6:44 PM, Tim Chevalier wrote:
> On Fri, Aug 23, 2013 at 3:42 PM, Renato Lenzi wrote:
>> Hi there. I've installed Rust 7 on Windows 7. I'm trying to compile this
>> simple code:
>>
>> f
On Fri, Aug 23, 2013 at 3:42 PM, Renato Lenzi wrote:
> Hi there. I've installed Rust 7 on Windows 7. I'm trying to compile this
> simple code:
>
> fn sum (x: int, y : int) -> int
> {
> x + y
> }
>
> fn main()
> {
> let x =sum(2, 3);
> io::println(int::to_str(x));
> }
>
> but i get:
>
> 00015.rs:9:
Hi there. I've installed Rust 7 on Windows 7. I'm trying to compile this
simple code:
fn sum (x: int, y : int) -> int
{
x + y
}
fn main()
{
let x =sum(2, 3);
io::println(int::to_str(x));
}
but i get:
00015.rs:9:13: 9:24 error: unresolved name
00015.rs:9 io::println(int::to_str(x));