Tweak wording of type errors involving type params

Fix #78206.
This commit is contained in:
Esteban Küber 2023-10-18 22:10:48 +00:00
parent d9dc5ee072
commit a07c032e96

View File

@ -13,7 +13,7 @@ error[E0308]: mismatched types
LL | fn foo<u32>(a: u32) -> u32 {
| --- --- expected `u32` because of return type
| |
| this type parameter
| expected this type parameter
LL | 42
| ^^ expected type parameter `u32`, found integer
|