]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/match-refactor-to-expr.rs
Merge commit 'e8dca3e87d164d2806098c462c6ce41301341f68' into sync_from_cg_gcc
[rust.git] / src / test / ui / parser / match-refactor-to-expr.rs
1 // run-rustfix
2
3 fn main() {
4     let foo =
5         match //~ NOTE while parsing this `match` expression
6         Some(4).unwrap_or(5)
7         //~^ NOTE expected one of `.`, `?`, `{`, or an operator
8         ; //~ NOTE unexpected token
9         //~^ ERROR expected one of `.`, `?`, `{`, or an operator, found `;`
10
11     println!("{}", foo)
12 }