]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/try-operator-dont-suggest-semicolon.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / try-operator-dont-suggest-semicolon.stderr
1 error[E0308]: mismatched types
2   --> $DIR/try-operator-dont-suggest-semicolon.rs:6:9
3    |
4 LL |         b()
5    |         ^^^- help: consider using a semicolon here: `;`
6    |         |
7    |         expected `()`, found `i32`
8
9 error[E0308]: mismatched types
10   --> $DIR/try-operator-dont-suggest-semicolon.rs:16:9
11    |
12 LL | /     if true {
13 LL | |
14 LL | |         x?
15    | |         ^^ expected `()`, found integer
16 LL | |
17 LL | |
18 LL | |
19 LL | |     }
20    | |_____- expected this to be `()`
21    |
22 help: consider using a semicolon here
23    |
24 LL |         x?;
25    |           +
26 help: consider using a semicolon here
27    |
28 LL |     };
29    |      +
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0308`.