]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/match-needing-semi.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / suggestions / match-needing-semi.stderr
CommitLineData
e74abb32 1error[E0308]: mismatched types
6a06907d 2 --> $DIR/match-needing-semi.rs:7:13
e74abb32
XL
3 |
4LL | / match 3 {
5LL | | 4 => 1,
6LL | | 3 => {
6a06907d
XL
7LL | | foo()
8 | | ^^^^^ expected `()`, found `i32`
e74abb32
XL
9LL | | }
10LL | | _ => 2
11LL | | }
6a06907d
XL
12 | |_____- expected this to be `()`
13 |
14help: consider using a semicolon here
15 |
16LL | foo();
17 | ^
18help: consider using a semicolon here
19 |
20LL | };
21 | ^
e74abb32
XL
22
23error[E0308]: mismatched types
6a06907d 24 --> $DIR/match-needing-semi.rs:11:5
e74abb32
XL
25 |
26LL | / match 3 {
27LL | | 4 => 1,
28LL | | 3 => 2,
29LL | | _ => 2
30LL | | }
31 | | ^- help: consider using a semicolon here
32 | |_____|
60c5eb7d 33 | expected `()`, found integer
e74abb32
XL
34
35error: aborting due to 2 previous errors
36
37For more information about this error, try `rustc --explain E0308`.