rust/src/test/ui/parser/match-refactor-to-expr.rs
2019-11-06 17:26:20 -08:00

10 lines
322 B
Rust

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