]>
Commit | Line | Data |
---|---|---|
2c00a5a8 XL |
1 | use std::io; |
2 | ||
3 | fn main(){ | |
0731742a | 4 | let x: io::Result<()> = Ok(()); |
2c00a5a8 XL |
5 | match x { |
6 | Err(ref e) if e.kind == io::EndOfFile { | |
7 | //~^ NOTE while parsing this struct | |
8 | return | |
9 | //~^ ERROR expected identifier, found keyword `return` | |
10 | //~| NOTE expected identifier, found keyword | |
11 | } | |
60c5eb7d | 12 | //~^ NOTE expected one of `.`, `=>`, `?`, or an operator |
2c00a5a8 | 13 | _ => {} |
e74abb32 | 14 | //~^ ERROR expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_` |
2c00a5a8 XL |
15 | //~| NOTE unexpected token |
16 | } | |
17 | } |