rust/src/test/ui/parser/issue-15980.stderr

28 lines
968 B
Plaintext
Raw Normal View History

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 {
| ------------- while parsing this struct
2018-02-24 17:01:39 -06:00
LL | //~^ NOTE while parsing this struct
2018-02-22 18:42:32 -06:00
LL | return
| ^^^^^^ 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 | }
| - expected one of `.`, `=>`, `?`, or an operator here
2018-02-24 17:01:39 -06:00
LL | //~^ NOTE expected one of `.`, `=>`, `?`, or an operator here
2018-02-22 18:42:32 -06:00
LL | _ => {}
| ^ 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(());
| ^^^^^^^^ did you mean `Result`?
error: aborting due to 3 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0412`.