diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-15 20:34:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 20:34:25 +0200 |
| commit | 39219a6dd82eec4d2e3f2b60031ecd8819666d0e (patch) | |
| tree | cce93e7fca36818bd1936829e68a81f531c0e928 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 9e33b69644b9a1866c7af3b755687dcd4a0ce462 (diff) | |
| parent | d0a26f1c9c17ea4a6fda68235725d7ba8dbf16ab (diff) | |
| download | rust-39219a6dd82eec4d2e3f2b60031ecd8819666d0e.tar.gz rust-39219a6dd82eec4d2e3f2b60031ecd8819666d0e.zip | |
Rollup merge of #114819 - estebank:issue-78124, r=compiler-errors
Point at return type when it influences non-first `match` arm
When encountering code like
```rust
fn foo() -> i32 {
match 0 {
1 => return 0,
2 => "",
_ => 1,
}
}
```
Point at the return type and not at the prior arm, as that arm has type `!` which isn't influencing the arm corresponding to arm `2`.
Fix #78124.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
