Files
rust/tests/ui
Matthias Krüger 8db5a6d8ee 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.
2023-08-15 20:34:25 +02:00
..
2023-08-15 03:44:21 +00:00
2023-05-30 13:03:40 +02:00
2023-08-06 15:06:40 +02:00
2023-07-17 22:06:32 +00:00
2023-08-03 15:12:44 +02:00
2023-05-08 17:58:01 -03:00
2023-08-07 19:06:18 +00:00
2023-08-01 23:12:03 +00:00
2023-08-15 04:03:04 +00:00
2023-07-28 22:23:21 +02:00
2023-04-29 13:01:46 +01:00
2023-07-28 11:20:11 +00:00
2023-07-29 11:47:26 +02:00
2023-06-29 16:24:07 +03:00
2023-04-03 09:24:11 +02:00
2023-08-10 11:00:06 +02:00
2023-08-04 16:19:55 +00:00
2023-08-06 13:34:53 +00:00
2023-04-19 19:13:45 +00:00
2023-08-14 16:57:51 -07:00
2023-05-08 03:36:30 +00:00
2023-05-29 12:07:41 -03:00
2023-03-29 18:04:44 -04:00
2023-08-15 00:57:18 +08:00
2023-06-12 20:24:48 +08:00
2023-08-12 17:18:46 +00:00
2023-04-29 13:01:46 +01:00
2023-05-12 00:10:52 +00:00
2023-03-08 00:00:18 +00:00
2023-04-13 22:10:26 -05:00
2023-04-13 22:10:26 -05:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00