]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-15980.rs
Add inferred args to typeck
[rust.git] / src / test / ui / parser / issue-15980.rs
1 use std::io;
2
3 fn main(){
4     let x: io::Result<()> = Ok(());
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         }
12         //~^ NOTE expected one of `.`, `=>`, `?`, or an operator
13         _ => {}
14         //~^ ERROR expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`
15         //~| NOTE unexpected token
16     }
17 }