diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-10-07 07:28:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-07 07:28:12 +0200 |
| commit | a09e2f6753078f3ab40b02e8c184d9b2fe07f342 (patch) | |
| tree | 24b9a8a33e2dae873270133d8916c63344728de0 /src/test/ui/array-slice-vec/array_const_index-1.rs | |
| parent | 04459f7a6ac04ca0adb98b04e5fca38e5760e00a (diff) | |
| parent | 58fb351cad389b660c82966e28e213e77dfc1c57 (diff) | |
| download | rust-a09e2f6753078f3ab40b02e8c184d9b2fe07f342.tar.gz rust-a09e2f6753078f3ab40b02e8c184d9b2fe07f342.zip | |
Rollup merge of #102761 - est31:let_else_uninhabited_test, r=compiler-errors
let-else: test else block with non-never uninhabited type let else currently does not allow uninhabited types for the `else` block that aren't `!`. One can maybe think about relaxing this in the future, but if it is done, it should be an explicit choice and not an unexpected side effect of e.g. a refactor. Thus, I'm extending a test that will fail if the behaviour changes.
Diffstat (limited to 'src/test/ui/array-slice-vec/array_const_index-1.rs')
0 files changed, 0 insertions, 0 deletions
