diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-12-05 19:42:21 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2022-12-27 16:45:55 -0800 |
| commit | 05e8ba126c7e4918315a35142d73f4e57fb2bb6b (patch) | |
| tree | a68ecfbbd1fcd9baf706802733d0687f0e4ff13f /tests/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | 92c1937a90e5b6f20fa6e87016d6869da363972e (diff) | |
| download | rust-05e8ba126c7e4918315a35142d73f4e57fb2bb6b.tar.gz rust-05e8ba126c7e4918315a35142d73f4e57fb2bb6b.zip | |
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
```
Diffstat (limited to 'tests/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
