rust/tests/ui/parser/match-refactor-to-expr.rs

13 lines
336 B
Rust
Raw Permalink Normal View History

//@ run-rustfix
2020-07-02 05:32:12 +00:00
fn main() {
let foo =
match //~ NOTE while parsing this `match` expression
2020-07-02 05:32:12 +00:00
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)
}