This commit is contained in:
Yuning Zhang 2019-01-01 20:34:02 -05:00
parent 39bd84494f
commit 5f9a65ffd6

View file

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