mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
This commit is contained in:
parent
eae7b997dd
commit
a902e3fd71
1 changed files with 4 additions and 2 deletions
|
@ -10,9 +10,11 @@ error[E0308]: mismatched types
|
|||
--> $DIR/builtin-type-shadow.rs:5:5
|
||||
|
|
||||
LL | fn foo<u32>(a: u32) -> u32 {
|
||||
| --- expected `u32` because of return type
|
||||
| --- --- expected `u32` because of return type
|
||||
| |
|
||||
| this type parameter
|
||||
LL | 42
|
||||
| ^^ expected type parameter, found integer
|
||||
| ^^ expected type parameter `u32`, found integer
|
||||
|
|
||||
= note: expected type `u32`
|
||||
found type `{integer}`
|
||||
|
|
Loading…
Reference in a new issue