036d200d1c
Fix an invalid error for a suggestion to add a slice in pattern-matching closes #96103
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.