2019-09-26 19:16:34 -05:00
|
|
|
error[E0308]: mismatched types
|
2021-02-04 19:36:06 -06:00
|
|
|
--> $DIR/match-needing-semi.rs:7:13
|
2019-09-26 19:16:34 -05:00
|
|
|
|
|
|
|
|
LL | / match 3 {
|
|
|
|
LL | | 4 => 1,
|
|
|
|
LL | | 3 => {
|
2021-02-04 19:36:06 -06:00
|
|
|
LL | | foo()
|
|
|
|
| | ^^^^^ expected `()`, found `i32`
|
2019-09-26 19:16:34 -05:00
|
|
|
LL | | }
|
|
|
|
LL | | _ => 2
|
|
|
|
LL | | }
|
2021-02-04 19:36:06 -06:00
|
|
|
| |_____- expected this to be `()`
|
|
|
|
|
|
|
|
|
help: consider using a semicolon here
|
|
|
|
|
|
|
|
|
LL | foo();
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2021-02-04 19:36:06 -06:00
|
|
|
help: consider using a semicolon here
|
|
|
|
|
|
|
|
|
LL | };
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2019-09-26 19:16:34 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2021-02-04 19:36:06 -06:00
|
|
|
--> $DIR/match-needing-semi.rs:11:5
|
2019-09-26 19:16:34 -05:00
|
|
|
|
|
|
|
|
LL | / match 3 {
|
|
|
|
LL | | 4 => 1,
|
|
|
|
LL | | 3 => 2,
|
|
|
|
LL | | _ => 2
|
|
|
|
LL | | }
|
|
|
|
| | ^- help: consider using a semicolon here
|
|
|
|
| |_____|
|
2019-11-15 11:37:01 -06:00
|
|
|
| expected `()`, found integer
|
2019-09-26 19:16:34 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|