2017-08-01 17:54:21 +02:00
|
|
|
error: This generic shadows the built-in type `u32`
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/builtin-type-shadow.rs:4:8
|
2018-10-06 18:18:06 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | fn foo<u32>(a: u32) -> u32 {
|
2018-10-06 18:18:06 +02:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::builtin-type-shadow` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/builtin-type-shadow.rs:5:5
|
2018-10-06 18:18:06 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | fn foo<u32>(a: u32) -> u32 {
|
2018-10-06 18:18:06 +02:00
|
|
|
| --- expected `u32` because of return type
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 42
|
2019-01-02 02:34:02 +01:00
|
|
|
| ^^ expected type parameter, found integer
|
2018-10-06 18:18:06 +02:00
|
|
|
|
|
|
|
|
= note: expected type `u32`
|
|
|
|
found type `{integer}`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-15 10:25:57 +01:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|