This commit is contained in:
Lzu Tao 2019-11-06 06:24:47 +00:00
parent eae7b997dd
commit a902e3fd71

View file

@ -10,9 +10,11 @@ error[E0308]: mismatched types
--> $DIR/builtin-type-shadow.rs:5:5 --> $DIR/builtin-type-shadow.rs:5:5
| |
LL | fn foo<u32>(a: u32) -> u32 { LL | fn foo<u32>(a: u32) -> u32 {
| --- expected `u32` because of return type | --- --- expected `u32` because of return type
| |
| this type parameter
LL | 42 LL | 42
| ^^ expected type parameter, found integer | ^^ expected type parameter `u32`, found integer
| |
= note: expected type `u32` = note: expected type `u32`
found type `{integer}` found type `{integer}`