fork/rust

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

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

master
740 B33 linesraw
1error[E0308]: mismatched types
2  --> $DIR/try-operator-dont-suggest-semicolon.rs:6:9
3   |
4LL |         b()
5   |         ^^^- help: consider using a semicolon here: `;`
6   |         |
7   |         expected `()`, found `i32`
8
9error[E0308]: mismatched types
10  --> $DIR/try-operator-dont-suggest-semicolon.rs:16:9
11   |
12LL | /     if true {
13LL | |
14LL | |         x?
15   | |         ^^ expected `()`, found integer
16LL | |
17LL | |
18LL | |
19LL | |     }
20   | |_____- expected this to be `()`
21   |
22help: consider using a semicolon here
23   |
24LL |         x?;
25   |           +
26help: consider using a semicolon here
27   |
28LL |     };
29   |      +
30
31error: aborting due to 2 previous errors
32
33For more information about this error, try `rustc --explain E0308`.