1 error: expected identifier, found keyword `return`
2 --> $DIR/issue-15980.rs:20:13
4 LL | Err(ref e) if e.kind == io::EndOfFile {
5 | ------------- while parsing this struct
6 LL | //~^ NOTE while parsing this struct
8 | ^^^^^^ expected identifier, found keyword
10 error: expected one of `.`, `=>`, `?`, or an operator, found `_`
11 --> $DIR/issue-15980.rs:25:9
14 | - expected one of `.`, `=>`, `?`, or an operator here
15 LL | //~^ NOTE expected one of `.`, `=>`, `?`, or an operator here
19 error[E0412]: cannot find type `IoResult` in module `io`
20 --> $DIR/issue-15980.rs:14:16
22 LL | let x: io::IoResult<()> = Ok(());
23 | ^^^^^^^^ did you mean `Result`?
25 error: aborting due to 3 previous errors
27 For more information about this error, try `rustc --explain E0412`.