fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
273 B18 linesraw
1// check-only
2// run-rustfix
3
4fn main() {
5    match 3 {
6        4 => 1,
7        3 => {
8            2 //~ ERROR mismatched types
9        }
10        _ => 2
11    };
12    match 3 { //~ ERROR mismatched types
13        4 => 1,
14        3 => 2,
15        _ => 2
16    };
17    let _ = ();
18}