blob: 47a8a1e623e8aa0592b2abb24c8f4e88373543c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
error: this generic shadows the built-in type `u32`
--> $DIR/builtin_type_shadow.rs:4:8
|
LL | fn foo<u32>(a: u32) -> u32 {
| ^^^
|
= note: `-D clippy::builtin-type-shadow` implied by `-D warnings`
error[E0308]: mismatched types
--> $DIR/builtin_type_shadow.rs:5:5
|
LL | fn foo<u32>(a: u32) -> u32 {
| --- --- expected `u32` because of return type
| |
| this type parameter
LL | 42
| ^^ expected type parameter `u32`, found integer
|
= note: expected type parameter `u32`
found type `{integer}`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.
|