fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
270 B11 linesraw
1// run-rustfix
2
3fn main() {
4    match &Some(3) {
5        &None => 1,
6        &Some(2) => { 3 }
7        //~^ ERROR expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`
8        //~| NOTE expected one of `,`, `.`, `?`, `}`, or an operator
9        _ => 2
10    };
11}