about summary refs log tree commit diff
path: root/tests/codegen/array-codegen.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-08-14 18:36:03 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-08-14 21:43:56 +0000
commit55f8c66a601236b422e35f56f7e414a8280c78d4 (patch)
tree6d8200665fef656f2d06086b82d569ac695fe669 /tests/codegen/array-codegen.rs
parent4cea2bc339db4efdc0fbcf44760c2e9a75d73e31 (diff)
downloadrust-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