summaryrefslogtreecommitdiff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorfee1-dead <ent3rm4n@gmail.com>2022-12-28 15:51:40 +0800
committerGitHub <noreply@github.com>2022-12-28 15:51:40 +0800
commitade9605a0843268ec7af416c0aa5b5a510541c7a (patch)
treefaa00c4f764f72e7d69fb8d1b2d04afa99dfc445 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent0818ba43a42ef455baf0b806e1bd21f41d64d27d (diff)
parent05e8ba126c7e4918315a35142d73f4e57fb2bb6b (diff)
downloadrust-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