fee1-dead
ade9605a08
Rollup merge of #105347 - estebank:single-line-match, r=compiler-errors
...
Account for `match` expr in single line
When encountering `match Some(42) { Some(x) => x, None => "" };`, output
```
error[E0308]: `match` arms have incompatible types
--> f53.rs:2:52
|
2 | let _ = match Some(42) { Some(x) => x, None => "" };
| -------------- - ^^ expected integer, found `&str`
| | |
| | this is found to be of type `{integer}`
| `match` arms have incompatible types
```
2022-12-28 15:51:40 +08:00
..
2022-12-18 22:01:39 +00:00
2022-12-25 14:42:49 +00:00
2022-12-27 12:33:35 -08:00
2022-12-27 07:31:42 +00:00
2022-12-24 00:31:41 +01:00
2022-12-21 23:20:04 +00:00
2022-12-20 22:34:42 +01:00
2022-12-25 22:15:00 +01:00
2022-12-26 09:06:51 +00:00
2022-12-24 14:00:37 +00:00
2022-12-25 00:43:50 +01:00
2022-12-25 17:32:26 +01:00
2022-12-24 00:31:40 +01:00
2022-12-24 00:31:41 +01:00
2022-12-25 17:32:26 +01:00
2022-12-25 17:32:26 +01:00
2022-12-23 15:59:53 +01:00
2022-12-22 16:37:42 +01:00
2022-12-27 00:34:53 +08:00
2022-12-27 12:33:34 -08:00
2022-12-20 22:10:40 +01:00
2022-12-18 21:47:28 +01:00
2022-12-27 16:45:55 -08:00
2022-12-21 17:38:38 +00:00
2022-12-27 12:33:35 -08:00
2022-12-25 00:43:50 +01:00
2022-12-20 22:10:40 +01:00
2022-12-25 22:15:00 +01:00
2022-12-27 17:21:08 +00:00
2022-12-24 00:31:41 +01:00
2022-12-20 22:10:40 +01:00
2022-12-24 00:31:41 +01:00
2022-12-25 23:47:11 +00:00
2022-12-27 16:37:48 +01:00
2022-12-26 12:03:47 +00:00
2022-12-25 17:32:26 +01:00
2022-12-24 00:31:41 +01:00
2022-12-24 00:31:41 +01:00
2022-12-27 12:16:25 -08:00
2022-12-20 22:10:40 +01:00
2022-12-25 22:15:00 +01:00
2022-12-27 12:33:35 -08:00
2022-12-20 22:10:40 +01:00
2022-12-25 00:43:50 +01:00
2022-12-27 00:34:53 +08:00
2022-12-20 22:10:40 +01:00
2022-12-19 14:41:35 +05:30
2022-12-20 22:10:40 +01:00
2022-12-18 21:47:28 +01:00