]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/match-needing-semi.stderr
Remove E0308 note when primary label has all info
[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 error[E0308]: mismatched types
17   --> $DIR/match-needing-semi.rs:12:5
18    |
19 LL | /     match 3 {
20 LL | |         4 => 1,
21 LL | |         3 => 2,
22 LL | |         _ => 2
23 LL | |     }
24    | |     ^- help: consider using a semicolon here
25    | |_____|
26    |       expected (), found integer
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0308`.