blob: eb7b6ca82969ffec0c0f5d3601cb53afca53bcf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use std::io;
fn main(){
let x: io::Result<()> = Ok(());
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
}
_ => {}
}
}
|