fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
330 B12 linesraw
1// run-rustfix
2
3fn main() {
4    let foo =
5         //~ NOTE while parsing this `match` expression
6        Some(4).unwrap_or(5)
7        //~^ NOTE expected one of `.`, `?`, `{`, or an operator
8        ; //~ NOTE unexpected token
9        //~^ ERROR expected one of `.`, `?`, `{`, or an operator, found `;`
10
11    println!("{}", foo)
12}