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