mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-15 00:41:27 +00:00
15 lines
348 B
Rust
15 lines
348 B
Rust
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
|
|
}
|
|
_ => {}
|
|
}
|
|
}
|