]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/issue-15980.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / parser / issue-15980.rs
CommitLineData
2c00a5a8
XL
1use std::io;
2
3fn 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}