[rust-dev] Main page example compilation error (Patrick Walton)

Alexander Stavonin a.stavonin at gmail.com
Mon Apr 9 05:03:13 PDT 2012


Patrick,

I checked the example with latest version of Rust, compiled from Git. Results:

astavonin:/Users/../RustTests: rustc --version 
rustc 0.2 (9e1e42d 2012-04-08 14:16:55 -0700)
host: x86_64-apple-darwin
astavonin:/Users/../RustTests: rustc test.rs 
test.rs:2:4: 2:7 error: `for` must be followed by a block call
test.rs:2     for i in [1, 2, 3] {
              ^~~

What I've made wrong?

Regards,
Alexander.

> The example is for the current git tip of Rust, not any released 
> version. Perhaps there should be a disclaimer to that effect...
> 
> Patrick


More information about the Rust-dev mailing list