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
757 B30 linesraw
1error[E0308]: mismatched types
2  --> $DIR/match-needing-semi.rs:8:13
3   |
4LL | /     match 3 {
5LL | |         4 => 1,
6LL | |         3 => {
7LL | |             2
8   | |             ^ expected `()`, found integer
9LL | |         }
10LL | |         _ => 2
11LL | |     }
12   | |     -- help: consider using a semicolon here
13   | |_____|
14   |       expected this to be `()`
15
16error[E0308]: mismatched types
17  --> $DIR/match-needing-semi.rs:12:5
18   |
19LL | /     match 3 {
20LL | |         4 => 1,
21LL | |         3 => 2,
22LL | |         _ => 2
23LL | |     }
24   | |     ^- help: consider using a semicolon here
25   | |_____|
26   |       expected `()`, found integer
27
28error: aborting due to 2 previous errors
29
30For more information about this error, try `rustc --explain E0308`.