2018-01-06 16:43:20 -06:00
|
|
|
use std::io;
|
|
|
|
|
|
|
|
fn main(){
|
2019-01-06 09:33:05 -06:00
|
|
|
let x: io::Result<()> = Ok(());
|
2018-01-06 16:43:20 -06:00
|
|
|
match x {
|
|
|
|
Err(ref e) if e.kind == io::EndOfFile {
|
|
|
|
//~^ NOTE while parsing this struct
|
|
|
|
return
|
|
|
|
//~^ ERROR expected identifier, found keyword `return`
|
|
|
|
//~| NOTE expected identifier, found keyword
|
|
|
|
}
|
|
|
|
//~^ NOTE expected one of `.`, `=>`, `?`, or an operator here
|
|
|
|
_ => {}
|
2019-10-22 13:46:19 -05:00
|
|
|
//~^ ERROR expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`
|
2018-01-06 16:43:20 -06:00
|
|
|
//~| NOTE unexpected token
|
|
|
|
}
|
|
|
|
}
|