rust/src/test/ui/parser/match-refactor-to-expr.fixed

13 lines
328 B
Rust
Raw Normal View History

2020-07-02 05:32:12 +00:00
// 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)
}