diff options
| author | bors <bors@rust-lang.org> | 2022-12-01 07:20:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-01 07:20:06 +0000 |
| commit | 641ced4eb96d07fba2284fa258ccb987f7afc8a1 (patch) | |
| tree | d23dec24499ffb6faf0b8632964183f14c16535f /tests | |
| parent | ee12b12be538900d9b21cde6643ee78144a14445 (diff) | |
| parent | 7ae5c81e9f9046a547757a1521e83c23da0bb67e (diff) | |
| download | rust-641ced4eb96d07fba2284fa258ccb987f7afc8a1.tar.gz rust-641ced4eb96d07fba2284fa258ccb987f7afc8a1.zip | |
Auto merge of #10007 - Jarcho:issue_10005, r=giraffate
Fix ICE in `result_large_err` with uninhabited enums fixes #10005 changelog: `result_large_err`: Fix ICE with uninhabited enums
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/result_large_err.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/result_large_err.rs b/tests/ui/result_large_err.rs index 9dd27d6dc01..1c12cebfd97 100644 --- a/tests/ui/result_large_err.rs +++ b/tests/ui/result_large_err.rs @@ -108,4 +108,10 @@ pub fn array_error<T, U>() -> Result<(), ArrayError<(i32, T), U>> { Ok(()) } +// Issue #10005 +enum Empty {} +fn _empty_error() -> Result<(), Empty> { + Ok(()) +} + fn main() {} |
