2020-07-02 14:32:12 +09:00
|
|
|
// run-rustfix
|
|
|
|
|
2015-10-27 13:41:55 +00:00
|
|
|
fn main() {
|
|
|
|
let foo =
|
2022-01-12 20:43:24 +00:00
|
|
|
match //~ NOTE while parsing this `match` expression
|
2020-07-02 14:32:12 +09:00
|
|
|
Some(4).unwrap_or(5)
|
2019-10-28 11:08:53 -07:00
|
|
|
//~^ NOTE expected one of `.`, `?`, `{`, or an operator
|
2017-03-24 19:14:58 -07:00
|
|
|
; //~ NOTE unexpected token
|
|
|
|
//~^ ERROR expected one of `.`, `?`, `{`, or an operator, found `;`
|
2015-10-27 13:41:55 +00:00
|
|
|
|
|
|
|
println!("{}", foo)
|
|
|
|
}
|