Your code works perfectly for me (except there are two newlines between each print (the \n is redundant))
What is your platform and rustc version? On Fri, Apr 6, 2012 at 9:53 AM, Mic <[email protected]> wrote: > Hello, > I am getting by executing the bellow code with Permission denied > > fn main() { > for i in [1, 2, 3] { > io::println(#fmt("hello %d\n", i)); > } > } > > $ rustc hello.rs > $ ./hello > bash: ./hello: Permission denied > $ ls -ahl > total 44K > drwx------ 2 mictadlo mictadlo 4.0K Apr 6 23:49 . > drwx------ 27 mictadlo mictadlo 8.0K Apr 6 23:43 .. > -rw-r--r-- 1 mictadlo mictadlo 14K Apr 6 23:49 hello > > What did I do wrong? > > Thank you in advance. > > Cheers, > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev > _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
