summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/match-refactor-to-expr.rs
blob: fcba5d0447e0df6d678ab34f72193b38b1e5e1b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-rustfix

fn main() {
    let foo =
        match //~ 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)
}