rust/tests/ui/parser/match-refactor-to-expr.rs
2024-02-16 20:02:50 +00:00

13 lines
336 B
Rust

//@ 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)
}