Correctly handle non-semi statement expressions for never coercions

This commit is contained in:
Lukas Wirth 2023-03-04 19:39:00 +01:00
parent 95c4cb991f
commit b85e2af898
3 changed files with 37 additions and 14 deletions

View file

@ -476,7 +476,7 @@ fn infer_adt_pattern() {
183..184 'x': usize
190..191 'x': usize
201..205 'E::B': E
209..212 'foo': bool
209..212 'foo': {unknown}
216..217 '1': usize
227..231 'E::B': E
235..237 '10': usize