summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/match-refactor-to-expr.fixed
blob: 423147b27aa0b0c0c16ddf6d6c10d5c807e63c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-rustfix

fn main() {
    let foo =
         //~ NOTE while parsing this `match` expression
        Some(4).unwrap_or(5)
        //~^ NOTE expected one of `.`, `?`, `{`, or an operator
        ; //~ NOTE unexpected token
        //~^ ERROR expected one of `.`, `?`, `{`, or an operator, found `;`

    println!("{}", foo)
}