[rust-dev] Main page example compilation error

Brian Anderson banderson at mozilla.com
Mon Apr 9 12:06:00 PDT 2012

On 04/08/2012 05:36 PM, Patrick Walton wrote:
> On 04/08/2012 05:35 PM, Alexander Stavonin wrote:
>> Hi, I'm trying to compile main page example, but it failed with error:
>> > rustc main.rs <http://main.rs>
>> main.rs:5:0: 5:1 error: expecting in, found }
>> main.rs:5 <http://main.rs:5> }
>> The situation with example on main page makes "very small taste" of Rust
>> not too good. Is it possible to fix example?
> The example is for the current git tip of Rust, not any released 
> version. Perhaps there should be a disclaimer to that effect...

I've changed the example to be compatible with both. The docs are all 
still for tip though.

More information about the Rust-dev mailing list