diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-08-14 18:36:03 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-08-14 21:43:56 +0000 |
| commit | 55f8c66a601236b422e35f56f7e414a8280c78d4 (patch) | |
| tree | 6d8200665fef656f2d06086b82d569ac695fe669 /tests/codegen/array-codegen.rs | |
| parent | 4cea2bc339db4efdc0fbcf44760c2e9a75d73e31 (diff) | |
| download | rust-55f8c66a601236b422e35f56f7e414a8280c78d4.tar.gz rust-55f8c66a601236b422e35f56f7e414a8280c78d4.zip | |
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/array-codegen.rs')
0 files changed, 0 insertions, 0 deletions
