These are chat archives for rust-lang/rust

28th
May 2015
gnathostome
@gnathostome
May 28 2015 11:11
Quick beginner question: I'm going through rust book, and the "guessing game" doesn't compile. Is there a bug? I have 1.0 installed
Compiling guessing_game v0.0.1 (file:///Users/joschu/Proj/rustsandbox/guessing_game)
src/main.rs:10:17: 10:38 error: this function takes 0 parameters but 1 parameter was supplied [E0061]
src/main.rs:10 io::stdin().read_line(&mut guess)
^~~~~
Peter Atashian
@retep998
May 28 2015 11:12
@gnathostome Are you sure you have 1.0.0 stable installed, and not just 1.0.0 beta?
gnathostome
@gnathostome
May 28 2015 11:12
Hmm, installed on homebrew, rustc --version gives rustc 1.0.0-dev
Peter Atashian
@retep998
May 28 2015 11:12
oh, that's probably outdated then
gnathostome
@gnathostome
May 28 2015 11:14
You recommend downloading a newer version of rust?
Peter Atashian
@retep998
May 28 2015 11:14
Yes
You should be using 1.0.0 stable at the very least
gnathostome
@gnathostome
May 28 2015 11:17
Thanks, just installed via http://www.rust-lang.org/install.html -- works now. I guess I was wrong to assume that the homebrew would be up to date