diff options
author | fee1-dead <ent3rm4n@gmail.com> | 2022-12-28 15:51:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 15:51:40 +0800 |
commit | ade9605a0843268ec7af416c0aa5b5a510541c7a (patch) | |
tree | faa00c4f764f72e7d69fb8d1b2d04afa99dfc445 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
parent | 0818ba43a42ef455baf0b806e1bd21f41d64d27d (diff) | |
parent | 05e8ba126c7e4918315a35142d73f4e57fb2bb6b (diff) | |
download | rust-ade9605a0843268ec7af416c0aa5b5a510541c7a.tar.gz |
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
```
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions