2018-01-06 16:43:20 -06:00
|
|
|
error: expected identifier, found keyword `return`
|
|
|
|
--> $DIR/issue-15980.rs:20:13
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Err(ref e) if e.kind == io::EndOfFile {
|
2018-01-06 16:43:20 -06:00
|
|
|
| ------------- while parsing this struct
|
|
|
|
19 | //~^ NOTE while parsing this struct
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | return
|
2018-01-06 16:43:20 -06:00
|
|
|
| ^^^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
error: expected one of `.`, `=>`, `?`, or an operator, found `_`
|
|
|
|
--> $DIR/issue-15980.rs:25:9
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | }
|
2018-01-06 16:43:20 -06:00
|
|
|
| - expected one of `.`, `=>`, `?`, or an operator here
|
|
|
|
24 | //~^ NOTE expected one of `.`, `=>`, `?`, or an operator here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | _ => {}
|
2018-01-06 16:43:20 -06:00
|
|
|
| ^ unexpected token
|
|
|
|
|
|
|
|
error[E0412]: cannot find type `IoResult` in module `io`
|
|
|
|
--> $DIR/issue-15980.rs:14:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let x: io::IoResult<()> = Ok(());
|
2018-01-06 16:43:20 -06:00
|
|
|
| ^^^^^^^^ did you mean `Result`?
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0412"
|