1 error: This generic shadows the built-in type `u32`
2 --> $DIR/builtin-type-shadow.rs:4:8
4 LL | fn foo<u32>(a: u32) -> u32 {
7 = note: `-D clippy::builtin-type-shadow` implied by `-D warnings`
9 error[E0308]: mismatched types
10 --> $DIR/builtin-type-shadow.rs:5:5
12 LL | fn foo<u32>(a: u32) -> u32 {
13 | --- --- expected `u32` because of return type
17 | ^^ expected type parameter `u32`, found integer
19 = note: expected type parameter `u32`
20 found type `{integer}`
21 = help: type parameters must be constrained to match other types
22 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0308`.