]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/match-refactor-to-expr.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / match-refactor-to-expr.rs
1 fn main() {
2     let foo =
3         match //~ NOTE while parsing this match expression
4         Some(4).unwrap_or_else(5)
5         //~^ NOTE expected one of `.`, `?`, `{`, or an operator
6         ; //~ NOTE unexpected token
7         //~^ ERROR expected one of `.`, `?`, `{`, or an operator, found `;`
8
9     println!("{}", foo)
10 }