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