]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/match-needing-semi.stderr
Rollup merge of #65261 - nnethercote:rm-Option-from-TokenStream, r=petrochenkov
[rust.git] / src / test / ui / suggestions / match-needing-semi.stderr
1 error[E0308]: mismatched types
2   --> $DIR/match-needing-semi.rs:8:13
3    |
4 LL | /     match 3 {
5 LL | |         4 => 1,
6 LL | |         3 => {
7 LL | |             2
8    | |             ^ expected (), found integer
9 LL | |         }
10 LL | |         _ => 2
11 LL | |     }
12    | |     -- help: consider using a semicolon here
13    | |_____|
14    |       expected this to be `()`
15    |
16    = note: expected type `()`
17               found type `{integer}`
18
19 error[E0308]: mismatched types
20   --> $DIR/match-needing-semi.rs:12:5
21    |
22 LL | /     match 3 {
23 LL | |         4 => 1,
24 LL | |         3 => 2,
25 LL | |         _ => 2
26 LL | |     }
27    | |     ^- help: consider using a semicolon here
28    | |_____|
29    |       expected (), found integer
30    |
31    = note: expected type `()`
32               found type `{integer}`
33
34 error: aborting due to 2 previous errors
35
36 For more information about this error, try `rustc --explain E0308`.