mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
330 B
Rust
12 lines
330 B
Rust
// 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)
|
|
}
|