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