Discuss Scratch

CodingGamerHD
Scratcher
62 posts

Terminal Snake

Doesn't compile on Ubuntu 16.10.

src/main.rs:141:17: 141:34 error: the `?` operator is not stable (see issue #31436)
src/main.rs:141 let mut f = File::open(path)?;
^~~~~~~~~~~~~~~~~
src/main.rs:143:5: 143:32 error: the `?` operator is not stable (see issue #31436)
src/main.rs:143 f.read_to_string(&mut buf)?;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:148:17: 148:36 error: the `?` operator is not stable (see issue #31436)
src/main.rs:148 let mut f = File::create(path)?;
^~~~~~~~~~~~~~~~~~~
src/main.rs:149:5: 149:30 error: the `?` operator is not stable (see issue #31436)
src/main.rs:149 write!(f, "{:?}", score)?;
^~~~~~~~~~~~~~~~~~~~~~~~~
BookOwl
Scratcher
1000+ posts

Terminal Snake

CodingGamerHD wrote:

Doesn't compile on Ubuntu 16.10.

src/main.rs:141:17: 141:34 error: the `?` operator is not stable (see issue #31436)
src/main.rs:141 let mut f = File::open(path)?;
^~~~~~~~~~~~~~~~~
src/main.rs:143:5: 143:32 error: the `?` operator is not stable (see issue #31436)
src/main.rs:143 f.read_to_string(&mut buf)?;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:148:17: 148:36 error: the `?` operator is not stable (see issue #31436)
src/main.rs:148 let mut f = File::create(path)?;
^~~~~~~~~~~~~~~~~~~
src/main.rs:149:5: 149:30 error: the `?` operator is not stable (see issue #31436)
src/main.rs:149 write!(f, "{:?}", score)?;
^~~~~~~~~~~~~~~~~~~~~~~~~
Your Rust is too old. You need a Rust >=1.13
CodingGamerHD
Scratcher
62 posts

Terminal Snake

BookOwl wrote:

CodingGamerHD wrote:

Doesn't compile on Ubuntu 16.10.

src/main.rs:141:17: 141:34 error: the `?` operator is not stable (see issue #31436)
src/main.rs:141 let mut f = File::open(path)?;
^~~~~~~~~~~~~~~~~
src/main.rs:143:5: 143:32 error: the `?` operator is not stable (see issue #31436)
src/main.rs:143 f.read_to_string(&mut buf)?;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:148:17: 148:36 error: the `?` operator is not stable (see issue #31436)
src/main.rs:148 let mut f = File::create(path)?;
^~~~~~~~~~~~~~~~~~~
src/main.rs:149:5: 149:30 error: the `?` operator is not stable (see issue #31436)
src/main.rs:149 write!(f, "{:?}", score)?;
^~~~~~~~~~~~~~~~~~~~~~~~~
Your Rust is too old. You need a Rust >=1.13
Turns out the Ubuntu repos are very slow at updating packages. Thanks!

Powered by DjangoBB